There is no way stdout is a TTY after we forked, so don't pretend it is

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@957 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-02-15 19:15:44 +00:00
parent 4d7256350b
commit 5a727a3953
+2
View File
@@ -228,6 +228,8 @@ int main(int argc, char** argv) {
close(0); open("/dev/null", O_RDONLY);
close(1); open("/dev/null", O_WRONLY);
close(2); open("/dev/null", O_WRONLY);
CUtils::SetStdoutIsTTY(false);
#endif
struct sigaction sa;