aboutsummaryrefslogtreecommitdiffstats
path: root/src/daemon.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-13 21:45:44 +0100
committerMax Kellermann <max@duempel.org>2009-01-13 21:45:44 +0100
commit18cb34700e1e4a960baa12a407d2148639996db9 (patch)
tree218c1fdfa8be9450abf4b189895710df087829dd /src/daemon.c
parent25321297554890d01fa2fd6828f7faa906cda54a (diff)
downloadmpd-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.c4
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!");
}