busybox/procps
Ron Yorston 0b6ec06beb kill: add '--' option to separate options from arguments
Using a negative pid to send TERM to a process group results in an
obscure error:

   $ ./busybox kill -12345
   kill: bad signal name '12345'

This is intended. Manpage says:
ARGUMENTS
       pid    Each pid can be one of four things:
...
              -n     where n is larger than 1.  All processes in process group
                     n are signaled.  When an argument of  the  form  '-n'  is
                     given,  and it is meant to denote a process group, either
                     a signal must be specified first, or the argument must be
                     preceded  by a '--' option, otherwise it will be taken as
                     the signal to send.

However, we did not support "--". Add this capability to BusyBox.

function                                             old     new   delta
kill_main                                            993     999      +6

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-08-28 14:03:13 +02:00
..
Config.src config: deindent all help texts 2017-07-21 09:50:55 +02:00
free.c free,stat: make NOEXEC 2017-08-07 18:18:09 +02:00
fuser.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
iostat.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
Kbuild.src kill: optimizations for single-applet build 2017-01-09 18:46:58 +01:00
kill.c kill: add '--' option to separate options from arguments 2017-08-28 14:03:13 +02:00
lsof.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
mpstat.c nameif: make it NOEXEC 2017-08-06 14:15:24 +02:00
nmeter.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
pgrep.c free,stat: make NOEXEC 2017-08-07 18:18:09 +02:00
pidof.c free,stat: make NOEXEC 2017-08-07 18:18:09 +02:00
pmap.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
powertop.c *: stop using atexit in non-debug build: saves ~260 in bss with musl 2017-08-16 17:45:32 +02:00
ps.c ps: fix build failure if FEATURE_PS_TIME is disabled 2017-08-22 15:39:13 +02:00
ps.posix
pstree.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
pwdx.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
smemcap.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
sysctl.c sysctl: make it NOEXEC 2017-08-05 18:23:10 +02:00
top.c *: stop using atexit in non-debug build: saves ~260 in bss with musl 2017-08-16 17:45:32 +02:00
uptime.c users,w,who,uptime,renice: make NOEXEC 2017-08-07 16:47:34 +02:00
watch.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00