Commit 18cb3470 authored by Max Kellermann's avatar Max Kellermann

daemon: don't check the setsid() return value

There is only one valid error condition for setsid(): when the current process is already the process group leader. This is non-critical.
parent 25321297
......@@ -75,9 +75,7 @@ daemonize(Options *options)
g_error("problems changing to root directory");
}
if (setsid() < 0) {
g_error("problems setsid'ing");
}
setsid();
g_debug("daemonized!");
}
......
Markdown is supported
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