commit | 31fcdd3fef4df0496963f01416d8f4e41194569f | [log] [tgz] |
---|---|---|
author | paul <paul> | Wed Apr 21 11:00:43 2004 +0000 |
committer | paul <paul> | Wed Apr 21 11:00:43 2004 +0000 |
tree | 7ebc860d9bae2bab52d3ffdb588328cb1d9d1108 | |
parent | 8585d4e5e2b33f71e347db451df895cfaefdc3a4 [diff] [blame] |
2004-04-21 Boris Kovalenko <boris@tagnet.ru> * daemon.c: (daemon) fix check for error return from setsid
diff --git a/lib/daemon.c b/lib/daemon.c index dfd26b3..d838010 100644 --- a/lib/daemon.c +++ b/lib/daemon.c
@@ -46,7 +46,7 @@ /* Become session leader and get pid. */ pid = setsid(); - if (pid < -1) + if (pid == -1) { perror ("setsid"); return -1;