mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Addition al fix for Linux (glibc?) specific daemon problem
This commit is contained in:
1 parent
b242d6df8c
commit
e2b406f27b
1 file changed
+5
-2
+5
-2
@@ -20,8 +20,11 @@ int randomizer = 1;
|
||||
|
||||
|
||||
void daemonize(void){
|
||||
if(fork()) exit(0);
|
||||
else setsid();
|
||||
if(fork() > 0) {
|
||||
usleep(SLEEPTIME);
|
||||
_exit(0);
|
||||
}
|
||||
setsid();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user