mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Fix daemonize in *nix
This commit is contained in:
1 parent
4e4f71712d
commit
b242d6df8c
2 files changed
+8
-1
No files matched your search
@@ -17,6 +17,13 @@ int randomizer = 1;
|
||||
|
||||
#ifndef _WIN32
|
||||
pthread_attr_t pa;
|
||||
|
||||
|
||||
void daemonize(void){
|
||||
if(fork()) exit(0);
|
||||
else setsid();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
unsigned char **stringtable = NULL;
|
||||
|
||||
Reference in new issue
Block a user