sshd stop on two SIGHUP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
portable OpenSSH |
Fix Released
|
Unknown
|
|||
openssh (Ubuntu) |
Fix Released
|
Low
|
Colin Watson |
Bug Description
When you send two SIGHUP to sshd (to reload it configuration), sshd simply die.
How to reproduce:
1)start an sshd server
if you do killall -s SIGHUP sshd. The server restart successfully.
2) To kill sshd with SIGHUP, run "killall -s SIGHUP sshd & killall -s SIGHUP sshd"
i.e. run two killall -s SIGHUP sshd at the same time.
3) # ps waux | grep sshd
root 19265 0.0 0.0 3352 820 pts/10 S+ 15:42 0:00 grep sshd
No sshd running :(
I think it's because the second SIGHUP happend before sshd finished his startup.
Their is not problem running several killall -s SIGHUP sshd we a little delay (like the time to press up arrow and enter). But two SIGHUP at the same time cause sshd to die nearly everytime.
This is an issues because afaik SIGHUP is sent by networking script (ifup ?) when an interface have an IP. On a server with 3 static IP, the sshd process get killed this way. No sshd, not possible to do an ssh on that server. Rebooted the server and everything get fine.
Related branches
Changed in openssh: | |
status: | Unknown → Fix Released |
Forget to tell the version affected:
This was tester on jaunty (with the killall -s SIGHUP).
The server is on hardy.
So hardy and jaunty are affected.