| commit | ed623966e30140cb5c3f13e491338887a52c2522 | [log] [download] |
|---|---|---|
| author | Darren Tucker <dtucker@zip.com.au> | Sun Feb 25 20:37:21 2007 +1100 |
| committer | Darren Tucker <dtucker@zip.com.au> | Sun Feb 25 20:37:21 2007 +1100 |
| tree | 349a4d2a8acb927f5034ba2b2d29a58ddf71567f | |
| parent | d04188e70e17b317076f4c7af3359dc439e43f0b [diff] |
- dtucker@cvs.openbsd.org 2007/02/21 11:00:05
[sshd.c]
Clear alarm() before restarting sshd on SIGHUP. Without this, if there's
a SIGALRM pending (for SSH1 key regeneration) when sshd is SIGHUP'ed, the
newly exec'ed sshd will get the SIGALRM and not have a handler for it,
and the default action will terminate the listening sshd. Analysis and
patch from andrew at gaul.org.