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

List:       busybox
Subject:    Re: killall behaviour
From:       Alfonso Ranieri <alforan () tin ! it>
Date:       2014-08-30 14:24:42
Message-ID: 5401DEAA.3090801 () tin ! it
[Download RAW message or body]

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.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

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