summaryrefslogtreecommitdiffstats
path: root/misc-utils/kill.1
diff options
context:
space:
mode:
authorKarel Zak2013-01-15 11:14:03 +0100
committerKarel Zak2013-01-15 11:18:28 +0100
commit741587f3e97ee8b610c54860ccc40b351aef14ee (patch)
tree7f5ee8e5d29f54220881629873a03c50fa5f0ab4 /misc-utils/kill.1
parentfindmnt: make --target usable with bind mounts (diff)
downloadkernel-qcow2-util-linux-741587f3e97ee8b610c54860ccc40b351aef14ee.tar.gz
kernel-qcow2-util-linux-741587f3e97ee8b610c54860ccc40b351aef14ee.tar.xz
kernel-qcow2-util-linux-741587f3e97ee8b610c54860ccc40b351aef14ee.zip
kill: add note about threads to the man page
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=846790 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/kill.1')
-rw-r--r--misc-utils/kill.120
1 files changed, 20 insertions, 0 deletions
diff --git a/misc-utils/kill.1 b/misc-utils/kill.1
index 09d30e9cd..404fb724e 100644
--- a/misc-utils/kill.1
+++ b/misc-utils/kill.1
@@ -97,6 +97,26 @@ signal. If the receiving process has installed a handler for this signal using
the SA_SIGINFO flag to
.BR sigaction (2),
then it can obtain this data via the si_value field of the siginfo_t structure.
+.SH NOTES
+It's not possible to send a signal to explicitly selected thread in a
+multithreaded process by
+.BR kill (2)
+syscall. If
+.BR kill(2)
+is used to send a signal to a thread group, then
+kernel selects arbitrary member of the thread group that has not blocked
+the signal. For more details see
+.BR clone (2)
+CLONE_THREAD description.
+
+The command
+.BR kill (1)
+as well as syscall
+.BR kill (2)
+accepts TID (thread ID, see
+.BR gettid (2))
+as argument. In this case the kill behavior is not changed and the signal is
+also delivered to the thread group rather than to the specified thread.
.SH "SEE ALSO"
.BR bash (1),
.BR tcsh (1),