Instead of using possibly complex ssh_signal(), write all the parts
authorderaadt <deraadt@openbsd.org>
Wed, 26 Jun 2024 23:16:52 +0000 (23:16 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 26 Jun 2024 23:16:52 +0000 (23:16 +0000)
commitbdb58b7f667c65dbb5ce1d0ba69d4a4de2ed3f63
tree6816290610b7ccd9eda1370b69168411dfcbb3f9
parent8e6f621730d29657986b16e4cf94e051992273c1
Instead of using possibly complex ssh_signal(), write all the parts
of the grace_alarm_handler() using the exact things allowed by the
signal-safe rules.  This is a good rule of thumb: Handlers should
be written to either set a global volatile sig_atomic_t inspected
from outside, and/or directly perform only safe operations listed
in our sigaction(2) manual page.
ok djm markus
usr.bin/ssh/sshd-session.c