64da0d1ebc
1) Refactor the manpage with num-options, optimize wording to be more concise and to the point, pid also specifies process groups. 2) Make int sig const. 3) Remove prototypes. 4) /* not reached */ consistency. 5) Refactor usage() with eprintf. 6) Refactor arg-parser with a switch, use estrtonum 7) Use return instead of exit() in main() 8) argc-argv-correctness.
48 lines
733 B
Groff
48 lines
733 B
Groff
.Dd March 16, 2015
|
|
.Dt KILL 1
|
|
.Os sbase
|
|
.Sh NAME
|
|
.Nm kill
|
|
.Nd signal processes
|
|
.Sh SYNOPSIS
|
|
.Nm
|
|
.Op Fl s Ar signame | Fl num | Fl signame
|
|
.Ar pid ...
|
|
.Nm
|
|
.Fl l Op Ar num
|
|
.Sh DESCRIPTION
|
|
.Nm
|
|
signals TERM to each process or process group specified by
|
|
.Ar pid .
|
|
.Sh OPTIONS
|
|
.Bl -tag -width Ds
|
|
.It Fl l Op Ar num
|
|
List all available signals or the signal name of
|
|
.Ar num .
|
|
.It Fl s Ar signame | Fl num | Fl signame
|
|
Send signal corresponding to
|
|
.Ar signame
|
|
|
|
|
.Ar num .
|
|
The default is TERM.
|
|
.El
|
|
.Sh SEE ALSO
|
|
.Xr kill 2 ,
|
|
.Xr signal 7
|
|
.Sh STANDARDS
|
|
The
|
|
.Nm
|
|
utility is compliant with the
|
|
.St -p1003.1-2008
|
|
specification.
|
|
.Pp
|
|
The
|
|
.Fl Ar signame
|
|
and
|
|
.Fl Ar num
|
|
syntax is marked by
|
|
.St -p1003.1-2008
|
|
as being an
|
|
X/OPEN System Interfaces
|
|
option.
|