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
+1
-1
@@ -104,7 +104,7 @@
|
||||
#define PTHREAD_STACK_MIN 32768
|
||||
#define sockerror strerror
|
||||
#endif
|
||||
#define daemonize() {if(fork())exit(0); else setsid();}
|
||||
void daemonize(void);
|
||||
#define SLEEPTIME 1000
|
||||
#ifndef O_BINARY
|
||||
#define O_BINARY 0
|
||||
|
||||
Reference in new issue
Block a user