summaryrefslogtreecommitdiffstats
path: root/misc-utils/kill.1
diff options
context:
space:
mode:
authorKarel Zak2014-04-07 11:07:00 +0200
committerKarel Zak2014-04-07 11:07:00 +0200
commita01f4d4323d5ca17c4d9773cbb7abd22d701e276 (patch)
tree0e70e590cc350ce7af4c220a1b602ebf8db6f1c4 /misc-utils/kill.1
parentkill: tiny change in man page (diff)
downloadkernel-qcow2-util-linux-a01f4d4323d5ca17c4d9773cbb7abd22d701e276.tar.gz
kernel-qcow2-util-linux-a01f4d4323d5ca17c4d9773cbb7abd22d701e276.tar.xz
kernel-qcow2-util-linux-a01f4d4323d5ca17c4d9773cbb7abd22d701e276.zip
kill: return 64 on partial success
Return 64 (aka SOME_OK) when more than process specified and the operation success only for subset of the processes. # kill -s 0 firefox mutt xxx; echo $? kill: cannot find process "xxx" 64 We already use this concept for chcpu(8) or mount(8). Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/kill.1')
-rw-r--r--misc-utils/kill.116
1 files changed, 15 insertions, 1 deletions
diff --git a/misc-utils/kill.1 b/misc-utils/kill.1
index bd29dc4f6..a3bc9ee05 100644
--- a/misc-utils/kill.1
+++ b/misc-utils/kill.1
@@ -126,7 +126,21 @@ 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"
+
+.SH RETURN CODES
+.B kill
+has the following return codes:
+.TP
+.BR 0
+success
+.TP
+.BR 1
+failure
+.TP
+.BR 64
+partial success (when more than one process specified)
+
+.SH SEE ALSO
.BR bash (1),
.BR tcsh (1),
.BR kill (2),