[openssh-unix-dev] Re: contrib/solaris/opensshd.in patch

Frank Cusack fcusack at fcusack.com
Mon Jan 21 13:45:55 EST 2002


On Sun, Jan 20, 2002 at 12:15:26PM -0600, David Bronder wrote:
> I'm not a Solaris user, so I don't care much about contrib/solaris,
> but wouldn't any script that assumes an sshd with a PPID of 1 is
> the parent sshd be fatal if you run a restart twice close enough
> together?  First time would work.  But all remaining children would
> now have a PPID of 1.  Second restart would kill all remaining
> children from the original sshd.

Yup, sounds right, damn.  So just test that sshd.pid is an sshd and
if so kill it.  If not, punt.  It should be correct in the great
majority of cases.
/fc



More information about the openssh-unix-dev mailing list