Elie De Brauwer
2012-12-16 15:54:24 UTC
Hi all,
The LSB specification of killall says "A killall process never kills
itself (but may kill other killall processes)."
The current implementation of killall does not adhere to this rule, with
the patch in attach killall will adhere to this rule.
Before:
edb at lapedb:~/edb-stuff/toybox/toybox$ ./toybox killall -9 toybox
Killed
After:
edb at lapedb:~/edb-stuff/toybox/toybox$ ./toybox killall -9 toybox
killall: No such process
Note: this patch should be applied after my previous submission, if for
some reason the previous path is unwanted let me know and I'll resubmit
this one.
my 2 cents
E.
--
Elie De Brauwer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: killall_may_not_kill_itself.patch
Type: text/x-patch
Size: 917 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20121216/8be56dee/attachment.bin>
The LSB specification of killall says "A killall process never kills
itself (but may kill other killall processes)."
The current implementation of killall does not adhere to this rule, with
the patch in attach killall will adhere to this rule.
Before:
edb at lapedb:~/edb-stuff/toybox/toybox$ ./toybox killall -9 toybox
Killed
After:
edb at lapedb:~/edb-stuff/toybox/toybox$ ./toybox killall -9 toybox
killall: No such process
Note: this patch should be applied after my previous submission, if for
some reason the previous path is unwanted let me know and I'll resubmit
this one.
my 2 cents
E.
--
Elie De Brauwer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: killall_may_not_kill_itself.patch
Type: text/x-patch
Size: 917 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20121216/8be56dee/attachment.bin>