killall behaviour

Alfonso Ranieri alforan at tin.it
Sat Aug 30 14:24:42 UTC 2014


Modifying the cycle in find_pid_by_name() to print the condition matched 
I get


./foobar &
[1] 3928

./hello &
[2] 3929

./busybox killall foobar
comm_match: ./foobar foobar 3928
p->exe bb_basename: 
/home/alfie/devs/dgn3500/DGN3500-V1.1.00.34_1.00.34_t4/apps/syslogd/foobar 
foobar 3929

[1]-  Terminato               ./foobar
[2]+  Terminato               ./hello

so to the list of the to kill process, foobar is added for a comm_match 
and hello is added for p->exe match

An example of the effect of this:
I run syslogd and klogd; klogd is a soft link to syslogd; syslogd is 
killed and re started: klogd is gone.

PS
Sorry Harald Becker, I noticed only at your reply that a couple of 
emails were sent to you and not to the ml.


More information about the busybox mailing list