MCPcopy Create free account
hub / github.com/3proxy/3proxy / daemonize

Function daemonize

src/common.c:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22 void daemonize(void){
23 if(fork() > 0) {
24 usleep(SLEEPTIME);
25 _exit(0);
26 }
27 setsid();
28 }
29
30#endif
31

Callers 2

proxymain.cFile · 0.85
h_daemonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected