MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / daemonize

Function daemonize

client/vglclient.cpp:227–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225
226
227void daemonize(void)
228{
229 int err;
230 if(getppid() == 1) return;
231 err = fork();
232 if(err < 0) exit(-1);
233 if(err > 0) exit(0);
234 child = true;
235 setsid();
236 signal(SIGCHLD, SIG_IGN);
237 signal(SIGTSTP, SIG_IGN);
238 signal(SIGTTOU, SIG_IGN);
239 signal(SIGTTIN, SIG_IGN);
240}
241
242
243unsigned short instanceCheck(Display *dpy)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected