[Bug 1955] New: pidfile contains non-existing process id for a short while after restart

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Dec 7 01:03:21 EST 2011


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

             Bug #: 1955
           Summary: pidfile contains non-existing process id for a short
                    while after restart
    Classification: Unclassified
           Product: Portable OpenSSH
           Version: 5.9p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sshd
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: plautrba at redhat.com


Created attachment 2115
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2115
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.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list