From 1e229a235d9e011c4f64169e51be7ac4fa78bbde Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 7 Jun 2019 22:52:38 -0700 Subject: Improve signal name<->number conversions. Include all the signals, not just the POSIX ones. In particular, improve support for real-time signals. My attempt to switch AOSP builds over to toybox timeout got reverted when I broke the ART build bots which use SIGRTMIN+2. Also fix `kill -l 3` to show "QUIT" and `kill -l QUIT` to show "3". Also make the `kill -l` output include numbers and names, and format it to look better on a 80x24 tty, because it's always August 1978 somewhere. --- toys/lsb/killall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/lsb') diff --git a/toys/lsb/killall.c b/toys/lsb/killall.c index 8870618b..119e01fa 100644 --- a/toys/lsb/killall.c +++ b/toys/lsb/killall.c @@ -68,7 +68,7 @@ void killall_main(void) TT.signum = SIGTERM; if (toys.optflags & FLAG_l) { - sig_to_num(NULL); + list_signals(); return; } -- cgit v1.2.3