diff options
author | Max Kellermann <max@duempel.org> | 2009-01-13 21:45:44 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-13 21:45:44 +0100 |
commit | 18cb34700e1e4a960baa12a407d2148639996db9 (patch) | |
tree | 218c1fdfa8be9450abf4b189895710df087829dd /src/daemon.c | |
parent | 25321297554890d01fa2fd6828f7faa906cda54a (diff) | |
download | mpd-18cb34700e1e4a960baa12a407d2148639996db9.tar.gz mpd-18cb34700e1e4a960baa12a407d2148639996db9.tar.xz mpd-18cb34700e1e4a960baa12a407d2148639996db9.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/daemon.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/daemon.c b/src/daemon.c index d311c5b7c..8763b5b2e 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -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!"); } |