diff options
author | Elie De Brauwer <eliedebrauwer@gmail.com> | 2012-12-08 20:10:05 +0100 |
---|---|---|
committer | Elie De Brauwer <eliedebrauwer@gmail.com> | 2012-12-08 20:10:05 +0100 |
commit | 7c6209d6c336df74984e62aa88679c06641ae309 (patch) | |
tree | b4bcc499ecfc4fe43ec6685803020f42c332e9c9 /toys/lsb/killall.c | |
parent | d394a1fb216b3a4653848f6625f8f731d7d34ac7 (diff) | |
download | toybox-7c6209d6c336df74984e62aa88679c06641ae309.tar.gz |
Adding -s (single shot) and -o (omit pids) options to pidof
Diffstat (limited to 'toys/lsb/killall.c')
-rw-r--r-- | toys/lsb/killall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/lsb/killall.c b/toys/lsb/killall.c index debc3dfc..2294f61d 100644 --- a/toys/lsb/killall.c +++ b/toys/lsb/killall.c @@ -25,7 +25,7 @@ GLOBALS( int signum; ) -static void kill_process(pid_t pid) +static int kill_process(pid_t pid) { int ret; @@ -33,6 +33,7 @@ static void kill_process(pid_t pid) ret = kill(pid, TT.signum); if (ret == -1 && !(toys.optflags & FLAG_q)) perror("kill"); + return 1; } void killall_main(void) |