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.