mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
10
main.cpp
10
main.cpp
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user