[Toybox] Subject: [PATCH] kill: allow `kill -0` for testing process existence.

enh enh at google.com
Thu Aug 26 17:37:50 PDT 2021


Allow num_to_sig(0) so kill doesn't disallow -0 because it can't
round-trip, and then teach list_signals() to avoid the special case of
signal 0 rather than assume that all the signals it shouldn't print
don't have names now signal 0 has the name "0".
---
 lib/lib.c         | 2 +-
 lib/portability.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210826/4e015e69/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-kill-allow-kill-0-for-testing-process-existence.patch
Type: text/x-patch
Size: 1363 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210826/4e015e69/attachment-0002.bin>


More information about the Toybox mailing list