small problem with kill --queue

Benno Schulenberg
2014-07-07T20:34:56Z

Hello Sami,

./kill --queue 11 12
kill: sending signal to 12 failed: Operation not permitted

/kill --queue data 12
kill: unknown signal data; valid signals:
1 HUP 2 INT 3 QUIT 4 ILL 5 TRAP [...]

But "data" is not a signal, it is meant to be a number, an integer,
a value passed to the signalled process.

In misc-utils.c it does this:

arg = *argv;
if ((ctl->numsig = arg_to_signum(arg, 0)) < 0)
err_nosig(arg);

But it should not run arg_to_signum() on the argument, it
should simply parse it as an integer, and when that fails,
it should not call err_nosig() but say something like "not
a number". Right?

Benno

--
http://www.fastmail.fm - mmm... Fastmail...