[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/8] initscripts: use pidof -s /sbin/init for robustness

From: Pino Toscano
Subject: Re: [PATCH 3/8] initscripts: use pidof -s /sbin/init for robustness
Date: Mon, 22 Jul 2013 15:57:45 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

Alle martedì 9 luglio 2013, Justus Winter ha scritto:
> pidof -s returns the first matching process. Since readdir(2) on
> procfs returns the processes in ascending order, this returns the
> first process. This is more robust if there is more than one
> /sbin/init process.
> Currently on Hurd there are two /sbin/init processes.

Are you sure there are two /sbin/init process around, when using 
sysvinit? Back then in my experiments, I remember one /hurd/init (as of 
now) and /sbin/init, and I had to fix procfs so `pidof /sbin/init` would 
actually match exactly and not go into fuzzy search (which would find 
/hurd/init and /sbin/init).

Pino Toscano

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]