killall behaviour
Alfonso Ranieri
alforan at tin.it
Fri Aug 29 15:25:31 UTC 2014
Il 29/08/2014 17:18, Harald Becker ha scritto:> Hi Alfonso !
>
> > ln -s foobar hello
>
> I overlooked this. Sorry!
>
>> ./foobar &
>> ./hello &
>
> This way you indeed start the same application twice. Especially if they
> are shell scripts or something similar, it is very hard to distinguish
> with which name they got started. See what ps or top say for those two
> jobs.
>
> In addition try using hard links:
>
> ln foobar hello
>
> --
> Harald
>
>
The question starts from the fact that in the linux box where killall is
from psmisc-22.20, if I do (foobar is just a pause() in main)
./foobar &
./hello &
killall foobar
hello is not killed
...
./foobar &
busybox killall foobar
hello is killed
I just wanted to know if it is a "will" or "just happens" in
find_pid_by_name.
More information about the busybox
mailing list