avoid null pointer on machine check printf's
[unix-history] / usr / src / bin / kill / kill.1
CommitLineData
3d86f03a
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
9efdb578 5.\" @(#)kill.1 6.2 (Berkeley) %G%
3d86f03a 6.\"
2c9c5bb4 7.TH KILL 1 ""
3d86f03a
KM
8.UC 4
9.SH NAME
10kill \- terminate a process with extreme prejudice
11.SH SYNOPSIS
12.B kill
13[
14.BR \- sig
15]
16processid ...
17.br
18.B kill
19.B \-l
20.SH DESCRIPTION
21.I Kill
22sends the TERM (terminate, 15) signal to the specified processes.
23If a signal name or number preceded by `\-' is given
24as first argument, that signal is sent instead of
25terminate
26(see
edebdd33 27.IR sigvec (2)).
3d86f03a
KM
28The signal names are listed by
29`kill \-l', and are as given in
30.I /usr/include/signal.h,
31stripped of the common SIG prefix.
32.PP
33The terminate signal will kill processes that do not catch the signal;
34`kill \-9 ...' is a sure kill, as the KILL (9) signal cannot be caught.
35By convention, if process number 0 is specified, all members
36in the process group (i.e. processes resulting from
37the current login) are signaled (but beware: this works only
38if you use
39.IR sh (1);
40not if you use
41.IR csh (1).)
9efdb578
JL
42Negative process numbers also have special meanings; see
43.IR kill (2)
44for details.
45.PP
3d86f03a
KM
46The killed processes must belong
47to the current user unless
48he is the super-user.
49.PP
3d86f03a
KM
50The process number of an asynchronous process
51started with `&' is reported by the shell.
52Process numbers can also be found by using
9efdb578 53.IR ps (1).
3d86f03a
KM
54.I Kill
55is a built-in to
56.IR csh (1);
9efdb578 57it allows job specifiers of the form ``%...'' as arguments
3d86f03a
KM
58so process id's are not as often used as
59.I kill
60arguments.
61See
62.IR csh (1)
63for details.
64.SH "SEE ALSO"
edebdd33 65csh(1), ps(1), kill(2), sigvec(2)
3d86f03a 66.SH BUGS
9efdb578 67A replacement for ``kill 0''
3d86f03a
KM
68for
69.IR csh (1)
70users should be provided.