Bug 676297 - Please support RT signals in /usr/bin/kill
Summary: Please support RT signals in /usr/bin/kill
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-09 11:40 UTC by Lennart Poettering
Modified: 2011-02-28 16:19 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-02-28 16:19:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lennart Poettering 2011-02-09 11:40:05 UTC
Would be cool if we could list and send RT signals with /usr/bin/kill. Currently it is only possible to send them numerically but not by name.

The following syntaxes might be useful to support:

kill -RT1 4711
kill -RTMIN+1 4711

Even better would be to support passing along the sigqueue() sival_int for these signals via a command line argument.

(The bash internal version of kill can list signals by name, but not send them by name apparently)

Comment 1 Lennart Poettering 2011-02-09 11:45:15 UTC
Hmm, seems ksh also supports "SIGRTMAX-1" as syntax, so might make sense to support that too.

Comment 2 Lennart Poettering 2011-02-09 11:51:18 UTC
Hmm, so bash actually does support sending RT sigs, but they only accept RTMAX-x as syntax for the higher signals and will refuse RTMIN+y for them. Kinda weird and not pretty.

Would be cool if util-linux' kill implementation would accept all three syntaxes:

kill -RT16 4711
kill -RTMIN+16 4711
kill -RTMAX-14 4711

all of which should be equivalent to this on Linux:

kill -50 4711

Comment 3 Karel Zak 2011-02-28 16:19:26 UTC
Implemented by upstream commits:

ae63d823abc33554ee1d3906a876734277293557 - RT<n>,RTMIN+<n>, RTMAX-<n>
2713fc3ea77f33fa415e7a83202893938d95955e - l <signum> to translate to signal name
a1504d8bf5239c451c3f4e8ab95e312bb60be4e8 - add "-q sigval" to use sigqueue(2)
  
The change will be available in F-16 after util-linux upgrade to v2.20.


Note You need to log in before you can comment on or make changes to this bug.