Commit d9b1cb48 authored by Michael Ott's avatar Michael Ott
Browse files

Use standard daemon() call on Linux to daemonize the process

parent 19bda2d4
......@@ -33,6 +33,9 @@
static int dcdbdaemon()
{
#ifdef __linux__
daemon(0, 0);
#else
switch(fork()) {
case -1:
return -1;
......@@ -45,6 +48,7 @@ static int dcdbdaemon()
if (setsid() == -1)
return -1;
#endif
return 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment