From 16783dc32b19c531568f2bde98e723699f31fb3c Mon Sep 17 00:00:00 2001 From: djm Date: Sat, 4 Mar 2006 04:12:58 +0000 Subject: move a debug() outside of a signal handler; ok markus@ a little while back --- usr.bin/ssh/serverloop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ssh/serverloop.c') diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c index 8aa447fac1c..c4d43358808 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.127 2006/02/20 17:02:44 stevesk Exp $"); +RCSID("$OpenBSD: serverloop.c,v 1.128 2006/03/04 04:12:58 djm Exp $"); #include #include @@ -152,7 +152,6 @@ static void sigchld_handler(int sig) { int save_errno = errno; - debug("Received SIGCHLD."); child_terminated = 1; signal(SIGCHLD, sigchld_handler); notify_parent(); @@ -753,6 +752,7 @@ collect_children(void) sigaddset(&nset, SIGCHLD); sigprocmask(SIG_BLOCK, &nset, &oset); if (child_terminated) { + debug("Received SIGCHLD."); while ((pid = waitpid(-1, &status, WNOHANG)) > 0 || (pid < 0 && errno == EINTR)) if (pid > 0) -- cgit v1.2.3-59-g8ed1b