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:
parent
2532129755
commit
18cb34700e
@ -75,9 +75,7 @@ daemonize(Options *options)
|
|||||||
g_error("problems changing to root directory");
|
g_error("problems changing to root directory");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (setsid() < 0) {
|
setsid();
|
||||||
g_error("problems setsid'ing");
|
|
||||||
}
|
|
||||||
|
|
||||||
g_debug("daemonized!");
|
g_debug("daemonized!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user