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

2013-07-22 Thread Justus Winter
Quoting Pino Toscano (2013-07-22 15:57:45) > 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

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

2013-07-22 Thread Pino Toscano
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 th

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

2013-07-09 Thread Justus Winter
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. Clearly this needs some investig