<p dir="ltr">I discovered a different behavior between toybox and busybox killall.</p>
<p dir="ltr">In case of process running script,<br>
when I run killall with the script file name, busybox kill the process,<br>
but toybox doesn't. (and Ubuntu util also)</p>
<p dir="ltr">like this:<br>
-------------------------------------------------------------------------------------------------------------------<br>
# ps -ef | grep python<br>
root+ 8095 1766 0 17:36 ? 00:00:01 /usr/bin/python /usr/bin/terminator<br>
root+ 26021 4400 0 18:39 pts/29 00:00:00 grep --color=auto python</p>
<p dir="ltr">#killall terminator<br>
//busybox: kill 8095<br>
//toybox: No such process<br>
-------------------------------------------------------------------------------------------------------------------</p>
<p dir="ltr">In the toybox source, (lib/lib.c) names_to_pid(),<br>
readfile() returns only first argument, "python" from /proc/*/cmdline<br>
and compare with the argument ('terminator'), print error.</p>
<p dir="ltr">--(/proc/8095/cmdline)---------------------------------<br>
/usr/bin/python /usr/bin/terminator<br>
-----------------------------------------------------------------</p>
<p dir="ltr">Is this correct? Or is there any standard about this?<br>
I can't sure which one is correct.</p>
<p dir="ltr">What I checked spec is below.<br>
<a href="http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/killall.html">http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/killall.html</a></p>