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.
This commit is contained in:
Max Kellermann 2009-01-13 21:45:44 +01:00
parent 2532129755
commit 18cb34700e

View File

@ -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!");
}