Commit a537a36a authored by Micha Müller's avatar Micha Müller
Browse files

Set nochdir flag different to zero, so that daemon() does NOT change the...

Set nochdir flag different to zero, so that daemon() does NOT change the current working directory to root (see daemon() manpage).
parent 3719b5dc
......@@ -34,7 +34,7 @@
static int dcdbdaemon()
{
#ifdef __linux__
return daemon(0, 0);
return daemon(1, 0);
#else
switch(fork()) {
case -1:
......
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