All of lore.kernel.org
 help / color / mirror / Atom feed
* small problem with kill --queue
@ 2014-07-07 20:34 Benno Schulenberg
  2014-07-07 22:39 ` Sami Kerola
  0 siblings, 1 reply; 6+ messages in thread
From: Benno Schulenberg @ 2014-07-07 20:34 UTC (permalink / raw)
  To: Util-Linux; +Cc: Sami Kerola


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...


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-14 13:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-07 20:34 small problem with kill --queue Benno Schulenberg
2014-07-07 22:39 ` Sami Kerola
2014-07-09 13:29   ` Benno Schulenberg
2014-07-09 20:49     ` Sami Kerola
2014-07-09 20:49       ` [PATCH] kill: use --queue option argument as sigval integer value Sami Kerola
2014-07-14 13:51         ` Karel Zak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.