kill: use sigqueue to pass value with the signal.

New -q/--queue option for kill so it will send an integer to the
signalled process. See sigqueue(3) for details.

References:
 https://pubs.opengroup.org/onlinepubs/009695399/functions/sigqueue.html
 procps-ng/procps!32

Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
Arun Chandrasekaran
2020-04-24 19:22:47 +10:00
committed by Craig Small
parent 557fda8f98
commit cd7ea2abf3
3 changed files with 24 additions and 7 deletions

2
kill.1
View File

@@ -5,7 +5,7 @@
.\" Licensed under version 2 of the GNU General Public License.
.\" Written by Albert Cahalan; converted to a man page by
.\" Michael K. Johnson
.TH KILL 1 "October 2011" "procps-ng" "User Commands"
.TH KILL 1 "2020-04-24" "procps-ng" "User Commands"
.SH NAME
kill \- send a signal to a process
.SH SYNOPSIS