Mercurial > dropbear
diff svr-chansession.c @ 955:36eacc322e00
Make sure the check_close() handler runs when a server child process exits
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 28 Jul 2014 23:23:49 +0800 |
parents | 5daedffd0769 |
children | 0bb16232e7c4 |
line wrap: on
line diff
--- a/svr-chansession.c Mon Jul 28 22:59:16 2014 +0800 +++ b/svr-chansession.c Mon Jul 28 23:23:49 2014 +0800 @@ -89,6 +89,9 @@ const int saved_errno = errno; + /* Make channel handling code look for closed channels */ + ses.channel_signal_pending = 1; + TRACE(("enter sigchld handler")) while ((pid = waitpid(-1, &status, WNOHANG)) > 0) { TRACE(("sigchld handler: pid %d", pid))