[Bug 3531] Ssh will not exit when it receives SIGTERM before calling poll in client_wait_until_can_do_something until some events happen.
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Tue Feb 14 15:53:24 AEDT 2023
https://bugzilla.mindrot.org/show_bug.cgi?id=3531
--- Comment #5 from Damien Miller <djm at mindrot.org> ---
That sort of race condition is exactly what ppoll() is designed to
avoid.
We can test quit_pending with signals blocked and have ppoll(3)
atomically unblock them, so it would instantly be interrupted if a
SIGTERM came in before ppoll() started. Have a look at how serverloop.c
does it.
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list