summaryrefslogtreecommitdiff
path: root/bin/kill
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2007-11-01 16:09:32 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2007-11-01 16:09:32 +0000
commitd14e0113f351f83eec18365888c58c14d739ba30 (patch)
treeaf46fd460e462cf671c14a38ab057316ec8c84a2 /bin/kill
parentaf4bd78bac752ef66ceefb343264fd368fed7aac (diff)
there is a reason why the argument to -l is "exit_status": as well as
showing the names of signals, it may also convert the exit status of commands terminated by signals to their names. flesh out the description of -l accordingly. issue spotted by
Diffstat (limited to 'bin/kill')
-rw-r--r--bin/kill/kill.117
1 files changed, 13 insertions, 4 deletions
diff --git a/bin/kill/kill.1 b/bin/kill/kill.1
index cd4fe72e931..93d7b74d46a 100644
--- a/bin/kill/kill.1
+++ b/bin/kill/kill.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: kill.1,v 1.30 2007/08/06 19:16:05 sobrado Exp $
+.\" $OpenBSD: kill.1,v 1.31 2007/11/01 16:09:31 jmc Exp $
.\" $NetBSD: kill.1,v 1.8 1995/09/07 06:30:26 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)kill.1 8.2 (Berkeley) 4/28/95
.\"
-.Dd $Mdocdate: August 6 2007 $
+.Dd $Mdocdate: November 1 2007 $
.Dt KILL 1
.Os
.Sh NAME
@@ -68,9 +68,18 @@ Only the superuser may send signals to other users' processes.
The options are as follows:
.Bl -tag -width Ds
.It Fl l Op Ar exit_status
-If no operand is given, list the signal names; otherwise, write
-the signal name corresponding to
+Display the name of the signal corresponding to
.Ar exit_status .
+.Ar exit_status
+may be the exit status of a command killed by a signal
+(see the
+special
+.Xr sh 1
+parameter
+.Sq ?\& )
+or a signal number.
+.Pp
+If no operand is given, display the names of all the signals.
.It Fl s Ar signal_name
A symbolic signal name specifying the signal to be sent instead of the
default