diff options
author | paul <paul> | 2004-04-21 11:00:43 +0000 |
---|---|---|
committer | paul <paul> | 2004-04-21 11:00:43 +0000 |
commit | 3cfee170b6400c4c7e8f61a8eeab911b53247ca8 (patch) | |
tree | 35dcaa9fbe49ffc60d37013bff40713d7ec61181 | |
parent | e4b03f7392070836c2604f5e06bf29c9a5d83255 (diff) | |
download | quagga-3cfee170b6400c4c7e8f61a8eeab911b53247ca8.tar.bz2 quagga-3cfee170b6400c4c7e8f61a8eeab911b53247ca8.tar.xz |
2004-04-21 Boris Kovalenko <boris@tagnet.ru>
* daemon.c: (daemon) fix check for error return from setsid
-rw-r--r-- | lib/ChangeLog | 4 | ||||
-rw-r--r-- | lib/daemon.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index ab2489d0..121d1d62 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2004-04-21 Boris Kovalenko <boris@tagnet.ru> + + * daemon.c: (daemon) fix check for error return from setsid + 2004-01-19 Paul Jakma <paul@dishone.st> * sigevent.{c,h}: New files, implement event handled signals. diff --git a/lib/daemon.c b/lib/daemon.c index dfd26b36..d8380106 100644 --- a/lib/daemon.c +++ b/lib/daemon.c @@ -46,7 +46,7 @@ daemon (int nochdir, int noclose) /* Become session leader and get pid. */ pid = setsid(); - if (pid < -1) + if (pid == -1) { perror ("setsid"); return -1; |