diff options
author | 2000-12-11 20:16:22 +0000 | |
---|---|---|
committer | 2000-12-11 20:16:22 +0000 | |
commit | cd11f468b32c82c6ea5e75a06459dcd7d5b6d9f4 (patch) | |
tree | c61f104e0d497cb414eab9b93ac79141153d182c /usr.bin/ssh/serverloop.c | |
parent | updates; d.doroshenko@omnitel.net (diff) | |
download | wireguard-openbsd-cd11f468b32c82c6ea5e75a06459dcd7d5b6d9f4.tar.xz wireguard-openbsd-cd11f468b32c82c6ea5e75a06459dcd7d5b6d9f4.zip |
wait indicates failure by returning -1, not arbitrary values < 0
Diffstat (limited to 'usr.bin/ssh/serverloop.c')
-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 |