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

Bug#253099: killall.sh: Can kill wrong PID



On Mon, Jun 07, 2004 at 10:48:32AM +0200, Thomas Hood wrote:
> However, (1) this picks up the PID of the grep process itself:
> 
> $ ps ax | grep 'udhcpc\|dhclient\|pump'
> 15769 pts/2    S+     0:00 grep udhcpc\|dhclient\|pump

Okay, fair enough.

> (2) I don't see where udhcpc is started.  In dhcp.c only
> dhclient3, dhclient and pump seem to be supported.

udhcpc support was removed because support was also removed from
busybox. We readded it temporarily though so as not to break initrds.

When the new netcfg hits testing that'll no longer be used.

>   pids=$(ps --no-headers -o pid -C $CLIENT)

That's no good with busybox ps.

> This has the additional advantage of only killing genuine processes,
> not processes whose executable files happen to have the same names.

The d-i initrd is more or less a cleanroom environment. We can make
assumptions we can't make on a normal system here.

-- 
Joshua Kwan

Attachment: signature.asc
Description: Digital signature


Reply to: