diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-07 22:15:36 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-07 22:15:36 +0000 |
commit | 9af07046bf8e496d987f6e225a1fe0061cef1ac0 (patch) | |
tree | aaac3b19a4e2766a26e578927312e3d2e1ab33b4 /src/inspircd.cpp | |
parent | c03f650283bacec6f68390d98c97e12fe7d83742 (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.cpp | 5 |
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 |