Removed call to daemon() since it forks and was changing our pid

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@151 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-04-18 22:11:35 +00:00
parent d704d0511c
commit b1c12d2fba

View File

@@ -176,13 +176,11 @@ int main(int argc, char** argv) {
exit(0);
}
/* keep the term from hanging on logout */
if ( daemon( 1, 0 ) != 0 ) {
cerr << "Unable to daemonize!" << endl;
exit( 1 );
}
// Redirect std in/out/err to /dev/null
close(0); open("/dev/null", O_RDONLY);
close(1); open("/dev/null", O_WRONLY);
close(2); open("/dev/null", O_WRONLY);
#endif
struct sigaction sa;