summaryrefslogtreecommitdiffstats
path: root/tests/ts/kill
diff options
context:
space:
mode:
authorSami Kerola2014-07-09 22:49:03 +0200
committerKarel Zak2014-07-14 15:49:35 +0200
commita3443c3067027e0155a8135d13a6205528b48cd5 (patch)
tree8746ba7833e9dc9c45b803084d31e872d48b9a85 /tests/ts/kill
parentbuild-sys: improve the informative message when not building some util (diff)
downloadkernel-qcow2-util-linux-a3443c3067027e0155a8135d13a6205528b48cd5.tar.gz
kernel-qcow2-util-linux-a3443c3067027e0155a8135d13a6205528b48cd5.tar.xz
kernel-qcow2-util-linux-a3443c3067027e0155a8135d13a6205528b48cd5.zip
kill: use --queue option argument as sigval integer value
The sigqueue(3) takes two values, signal and sigval. Contents of the signal can be altered with --signal option argument, so the --queue argument should be reserved to affect sigval_int. This is regression fix introduced by commit 9e8dffd5cd29f03029b1ac99eecb129532ca5c0f. Reference: http://man7.org/linux/man-pages/man3/sigqueue.3.html Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/kill')
-rwxr-xr-xtests/ts/kill/options4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ts/kill/options b/tests/ts/kill/options
index 6cdaa24d4..5af78d969 100755
--- a/tests/ts/kill/options
+++ b/tests/ts/kill/options
@@ -51,8 +51,8 @@ try_option -s 1
try_option --signal 1
try_option --signal HUP
try_option --signal SIGHUP
-try_option -q HUP
-try_option --queue HUP
+try_option -s 1 -q 42
+try_option -s 1 --queue 42
try_option -1
try_option -HUP
try_option -SIGHUP