Bug 1955

Summary: pidfile contains non-existing process id for a short while after restart
Product: Portable OpenSSH Reporter: Petr Lautrbach <plautrba>
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 5.9p1   
Hardware: All   
OS: All   
Attachments:
Description Flags
use synchronization pipes in process daemonize none

Description Petr Lautrbach 2011-12-07 01:03:21 AEDT
Created attachment 2115 [details]
use synchronization pipes in process daemonize

sshd calls daemon(3) to daemonize and only after that creates pid file with new process id. Parent process is immediately exited in daemon() so there is non-existent process id in pid file for a short while. This can lead to confusion of checking process which can consider sshd as dead.