mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Make sure the check_close() handler runs when a server child process exits
This commit is contained in:
@@ -258,6 +258,12 @@ void channelio(fd_set *readfds, fd_set *writefds) {
|
||||
writechannel(channel, channel->errfd, channel->extrabuf);
|
||||
do_check_close = 1;
|
||||
}
|
||||
|
||||
if (ses.channel_signal_pending) {
|
||||
/* SIGCHLD can change channel state for server sessions */
|
||||
do_check_close = 1;
|
||||
ses.channel_signal_pending = 0;
|
||||
}
|
||||
|
||||
/* handle any channel closing etc */
|
||||
if (do_check_close) {
|
||||
|
||||
Reference in New Issue
Block a user