Bug 676297

Summary: Please support RT signals in /usr/bin/kill
Product: [Fedora] Fedora Reporter: Lennart Poettering <lpoetter>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jonathan, kzak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-28 16:19:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.