summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index ad51dacd4..5d8fa6dbe 100644
--- a/sshd.c
+++ b/sshd.c
@@ -18,7 +18,7 @@ agent connections.
18*/ 18*/
19 19
20#include "includes.h" 20#include "includes.h"
21RCSID("$Id: sshd.c,v 1.26 1999/11/21 02:23:53 damien Exp $"); 21RCSID("$Id: sshd.c,v 1.27 1999/11/21 07:31:57 damien Exp $");
22 22
23#include "xmalloc.h" 23#include "xmalloc.h"
24#include "rsa.h" 24#include "rsa.h"
@@ -316,7 +316,10 @@ void main_sigchld_handler(int sig)
316{ 316{
317 int save_errno = errno; 317 int save_errno = errno;
318 int status; 318 int status;
319 wait(&status); 319
320 while (waitpid(-1, &status, WNOHANG) > 0)
321 ;
322
320 signal(SIGCHLD, main_sigchld_handler); 323 signal(SIGCHLD, main_sigchld_handler);
321 errno = save_errno; 324 errno = save_errno;
322} 325}