[Bug 2158] Race condition in receiving SIGTERM

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Oct 9 05:44:05 EST 2013


https://bugzilla.mindrot.org/show_bug.cgi?id=2158

--- Comment #1 from Ben Maurer <ben.maurer at gmail.com> ---
Some potential strategies that come to mind to prevent this:

(1) handle the termination in the signal handler. The signal handler
doesn't appear to use malloc, it just closes the listening ports and
removes the PID file. This could be done inside the signal handler

(2) Create a pipe which signal handlers can write to in order to wake
up the select loop.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list