mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 01:56:49 +00:00
Only clear channel_signal_pending after handling all channels,
from Andrzej Szombierski
This commit is contained in:
parent
7fb1bec84a
commit
e0ae527190
@ -256,7 +256,6 @@ void channelio(fd_set *readfds, fd_set *writefds) {
|
|||||||
if (ses.channel_signal_pending) {
|
if (ses.channel_signal_pending) {
|
||||||
/* SIGCHLD can change channel state for server sessions */
|
/* SIGCHLD can change channel state for server sessions */
|
||||||
do_check_close = 1;
|
do_check_close = 1;
|
||||||
ses.channel_signal_pending = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* handle any channel closing etc */
|
/* 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
|
#ifdef USING_LISTENERS
|
||||||
handle_listeners(readfds);
|
handle_listeners(readfds);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user