mirror of https://github.com/mkerrisk/man-pages
Add text explicitly noting that sig==0 can be used to check for
the existence of a PID or PGID. Other minor rewordings.
This commit is contained in:
parent
25c8faf595
commit
0527ad7f3a
11
man2/kill.2
11
man2/kill.2
|
@ -41,7 +41,7 @@
|
|||
.\" Modified 2004-06-24 by aeb
|
||||
.\" Modified, 2004-11-30, after idea from emmanuel.colbus@ensimag.imag.fr
|
||||
.\"
|
||||
.TH KILL 2 2007-07-26 "Linux" "Linux Programmer's Manual"
|
||||
.TH KILL 2 2008-04-18 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
kill \- send signal to a process
|
||||
.SH SYNOPSIS
|
||||
|
@ -66,7 +66,8 @@ The
|
|||
system call
|
||||
can be used to send any signal to any process group or process.
|
||||
.PP
|
||||
If \fIpid\fP is positive, then signal \fIsig\fP is sent to \fIpid\fP.
|
||||
If \fIpid\fP is positive, then signal \fIsig\fP is sent to the
|
||||
process with the ID specified by \fIpid\fP.
|
||||
.PP
|
||||
If \fIpid\fP equals 0, then \fIsig\fP is sent to every process in the
|
||||
process group of the calling process.
|
||||
|
@ -76,10 +77,12 @@ for which the calling process has permission to send signals,
|
|||
except for process 1 (\fIinit\fP), but see below.
|
||||
.PP
|
||||
If \fIpid\fP is less than \-1, then \fIsig\fP is sent to every process
|
||||
in the process group \fI\-pid\fP.
|
||||
in the process group whose ID is \fI\-pid\fP.
|
||||
.PP
|
||||
If \fIsig\fP is 0, then no signal is sent, but error checking is still
|
||||
performed.
|
||||
performed;
|
||||
this can be used to check for the existence of a process ID or
|
||||
process group ID.
|
||||
|
||||
For a process to have permission to send a signal
|
||||
it must either be privileged (under Linux: have the
|
||||
|
|
Loading…
Reference in New Issue