diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-12-11 20:16:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-12-11 20:16:23 +0000 |
commit | 99d6fb1f5b489b0e62fcb603c5f6fbeeb11d37fb (patch) | |
tree | 9ac734f8d937766f0f6901cfed1082e75908a9b1 /usr.bin/ssh | |
parent | d6128ed4d2eed309a54c602753593f3a3da58ea1 (diff) |
wait indicates failure by returning -1, not arbitrary values < 0
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/serverloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c index 169e95ba72c..ca9cdc99e43 100644 --- a/usr.bin/ssh/serverloop.c +++ b/usr.bin/ssh/serverloop.c @@ -35,7 +35,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: serverloop.c,v 1.36 2000/12/05 20:34:10 markus Exp $"); +RCSID("$OpenBSD: serverloop.c,v 1.37 2000/12/11 20:16:22 deraadt Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -577,7 +577,7 @@ server_loop(pid_t pid, int fdin_arg, int fdout_arg, int fderr_arg) /* Wait for the child to exit. Get its exit status. */ wait_pid = wait(&wait_status); - if (wait_pid < 0) { + if (wait_pid == -1) { /* * It is possible that the wait was handled by SIGCHLD * handler. This may result in either: this call |