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

Bug#472846: busybox: Regression in pidof: no longer lists 'debian-installer' processes



On Thursday 27 March 2008, Bastian Blank wrote:
> On Thu, Mar 27, 2008 at 10:14:54AM +0100, Bastian Blank wrote:
> > Looks like a feature request.
>
> The attached patch does this.

Thanks.

The patch did not apply cleanly to current unstable busybox, but I was able 
to solve the one reject.

There seems to be just one issue with the patch: it also returns the process 
number of the 'pidof' process itself. I think it fails to check that the 
second argument is actually a subcommand rather than just a parameter.

# ps | grep [d]ebian-installer
  595 root      1300 S   /sbin/sh /sbin/debian-installer
# pidof -x debian-installer
2280 595
# pidof -x debian-installer
2281 595

Cheers,
FJP

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


Reply to: