diff options
author | Roland McGrath <roland@gnu.org> | 1999-09-19 19:43:31 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-09-19 19:43:31 +0000 |
commit | c66d12ea3ff3cfc536620a6eb9d1b36ab3021b55 (patch) | |
tree | f4a3eb657abb69ee79f908bb74b8e1274900c3e1 /daemons | |
parent | 70c948b71464482601f2fe175d64e7e27535a144 (diff) |
1999-09-19 Roland McGrath <roland@baalperazim.frob.com>
* runttys.c (main): Only call error if setsid returns -1.
From Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/runttys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/runttys.c b/daemons/runttys.c index b8c3e7f0..091cf519 100644 --- a/daemons/runttys.c +++ b/daemons/runttys.c @@ -406,7 +406,7 @@ main () if (fail) return fail; - if (setsid ()) + if (setsid () == -1) error (0, errno, "setsid"); sa.sa_handler = sighup; |