[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-bug
Subject:    Re: [PATCH 3/8] initscripts: use pidof -s /sbin/init for robustness
From:       Pino Toscano <toscano.pino () tiscali ! it>
Date:       2013-07-22 13:57:45
Message-ID: 201307221557.49900.toscano.pino () tiscali ! it
[Download RAW message or body]


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

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic