Commit e0ae5271 authored by Matt Johnston's avatar Matt Johnston
Browse files

Only clear channel_signal_pending after handling all channels,

from Andrzej Szombierski
parent 7fb1bec8
......@@ -256,7 +256,6 @@ void channelio(fd_set *readfds, fd_set *writefds) {
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 */
......@@ -265,6 +264,8 @@ void channelio(fd_set *readfds, fd_set *writefds) {
}
}
ses.channel_signal_pending = 0;
#ifdef USING_LISTENERS
handle_listeners(readfds);
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment