summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 22:15:36 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 22:15:36 +0000
commit9af07046bf8e496d987f6e225a1fe0061cef1ac0 (patch)
treeaaac3b19a4e2766a26e578927312e3d2e1ab33b4 /src/inspircd.cpp
parentc03f650283bacec6f68390d98c97e12fe7d83742 (diff)
close stdin, stderr and stdout rather than freopen to /dev/null
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3531 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-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