Commit 9bb42854 authored by Michael Ott's avatar Michael Ott
Browse files

Return the return value from daemon() in dcdbdaemon()

parent 8ab33c8d
......@@ -34,7 +34,7 @@
static int dcdbdaemon()
{
#ifdef __linux__
daemon(0, 0);
return daemon(0, 0);
#else
switch(fork()) {
case -1:
......@@ -48,9 +48,9 @@ static int dcdbdaemon()
if (setsid() == -1)
return -1;
#endif
return 0;
#endif
}
#endif /* DCDBDAEMON_H */
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