|
|
1.1 root 1: .TH KILLPG 2 "27 July 1983"
2: .UC 4
3: .SH NAME
4: killpg \- send signal to a process group
5: .SH SYNOPSIS
6: .ft B
7: killpg(pgrp, sig)
8: .br
9: int pgrp, sig;
10: .ft R
11: .SH DESCRIPTION
12: .I Killpg
13: sends the signal
14: .I sig
15: to the process group
16: .IR pgrp .
17: See
18: .IR sigvec (2)
19: for a list of signals.
20: .PP
21: The sending process and members of the process group must
22: have the same effective user ID, otherwise
23: this call is restricted to the super-user.
24: As a single special case the continue signal SIGCONT may be sent
25: to any process which is a descendant of the current process.
26: .SH "RETURN VALUE
27: Upon successful completion, a value of 0 is returned. Otherwise,
28: a value of \-1 is returned and the global variable \fIerrno\fP
29: is set to indicate the error.
30: .SH "ERRORS
31: \fIKillpg\fP will fail and no signal will be sent if any of the
32: following occur:
33: .TP 15
34: [EINVAL]
35: \fISig\fP is not a valid signal number.
36: .TP 15
37: [ESRCH]
38: No process can be found corresponding to that specified by \fIpid\fP.
39: .TP 15
40: [EPERM]
41: The sending process is not the super-user and one or more
42: of the target processes has an effective user ID different from that
43: of the sending process.
44: .SH "SEE ALSO"
45: kill(2), getpgrp(2), sigvec(2)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.