summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspircd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index beb82623e..5c493f6b7 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -811,8 +811,9 @@ int InspIRCd::Run()
if (!Config->nofork)
{
- freopen("/dev/null","w",stdout);
- freopen("/dev/null","w",stderr);
+ close(stdout);
+ close(stderr);
+ close(stdin);
}
/* Add the listening sockets used for client inbound connections