mirror of
https://github.com/openbsd/src.git
synced 2026-06-19 07:43:34 +02:00
Combine three almost identical synopsis lines into a single one,
and three almost identical entries in the options list likewise, bcause all three have identical meaning and almost identical syntax. While here, call the list of signals in signal(3) "complete" rather than "more complete", because that's also true, a stronger statement, and more concise. OK jmc@
This commit is contained in:
+7
-21
@@ -1,4 +1,4 @@
|
||||
.\" $OpenBSD: kill.1,v 1.42 2025/04/22 16:49:14 schwarze Exp $
|
||||
.\" $OpenBSD: kill.1,v 1.43 2025/04/24 14:15:29 schwarze 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: April 22 2025 $
|
||||
.Dd $Mdocdate: April 24 2025 $
|
||||
.Dt KILL 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@@ -41,17 +41,11 @@
|
||||
.Nd terminate or signal a process
|
||||
.Sh SYNOPSIS
|
||||
.Nm kill
|
||||
.Op Fl s Ar signal_name
|
||||
.Op Fl Ar signal_number | Fl Ar signal_name | Fl s Ar signal_name
|
||||
.Ar pid ...
|
||||
.Nm kill
|
||||
.Fl l
|
||||
.Op Ar exit_status
|
||||
.Nm kill
|
||||
.Fl Ar signal_name
|
||||
.Ar pid ...
|
||||
.Nm kill
|
||||
.Fl Ar signal_number
|
||||
.Ar pid ...
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
@@ -80,18 +74,10 @@ parameter
|
||||
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
|
||||
.It Fl Ar signal_number | Fl Ar signal_name | Fl s Ar signal_name
|
||||
A non-negative decimal integer or a symbolic name
|
||||
specifying the signal to be sent instead of the default
|
||||
.Cm TERM .
|
||||
.It Fl Ar signal_name
|
||||
A symbolic signal name specifying the signal to be sent instead of the
|
||||
default
|
||||
.Cm TERM .
|
||||
.It Fl Ar signal_number
|
||||
A non-negative decimal integer specifying the signal to be sent instead
|
||||
of the default
|
||||
.Dv SIGTERM .
|
||||
.El
|
||||
.Pp
|
||||
The following PIDs have special meanings:
|
||||
@@ -118,7 +104,7 @@ Some of the more commonly used signals:
|
||||
.It 15 Ta Cm TERM Ta Pq software termination signal
|
||||
.El
|
||||
.Pp
|
||||
For a more complete list, consult the
|
||||
For a complete list, consult the
|
||||
.Xr signal 3
|
||||
manual page.
|
||||
.Pp
|
||||
|
||||
+3
-7
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: kill.c,v 1.14 2017/03/29 22:40:15 millert Exp $ */
|
||||
/* $OpenBSD: kill.c,v 1.15 2025/04/24 14:15:29 schwarze Exp $ */
|
||||
/* $NetBSD: kill.c,v 1.11 1995/09/07 06:30:27 jtc Exp $ */
|
||||
|
||||
/*
|
||||
@@ -174,12 +174,8 @@ printsignals(FILE *fp)
|
||||
void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr, "usage: %s [-s signal_name] pid ...\n",
|
||||
__progname);
|
||||
(void)fprintf(stderr, "usage: %s [-signal_number | -signal_name |"
|
||||
" -s signal_name] pid ...\n", __progname);
|
||||
(void)fprintf(stderr, " %s -l [exit_status]\n", __progname);
|
||||
(void)fprintf(stderr, " %s -signal_name pid ...\n",
|
||||
__progname);
|
||||
(void)fprintf(stderr, " %s -signal_number pid ...\n",
|
||||
__progname);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user