BSD 4_3 release
[unix-history] / usr / man / man2 / killpg.2
index 8b89980..fc11db2 100644 (file)
@@ -1,4 +1,10 @@
-.TH KILLPG 2 "27 July 1983"
+.\" Copyright (c) 1980 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
+.\"
+.\"    @(#)killpg.2    6.3 (Berkeley) 5/14/86
+.\"
+.TH KILLPG 2 "May 14, 1986"
 .UC 4
 .SH NAME
 killpg \- send signal to a process group
 .UC 4
 .SH NAME
 killpg \- send signal to a process group
@@ -19,10 +25,10 @@ See
 for a list of signals.
 .PP
 The sending process and members of the process group must
 for a list of signals.
 .PP
 The sending process and members of the process group must
-have the same effective user ID, otherwise
-this call is restricted to the super-user.
+have the same effective user ID, or
+the sender must be the super-user.
 As a single special case the continue signal SIGCONT may be sent
 As a single special case the continue signal SIGCONT may be sent
-to any process which is a descendant of the current process.
+to any process that is a descendant of the current process.
 .SH "RETURN VALUE
 Upon successful completion, a value of 0 is returned.  Otherwise,
 a value of \-1 is returned and the global variable \fIerrno\fP
 .SH "RETURN VALUE
 Upon successful completion, a value of 0 is returned.  Otherwise,
 a value of \-1 is returned and the global variable \fIerrno\fP
@@ -35,7 +41,11 @@ following occur:
 \fISig\fP is not a valid signal number.
 .TP 15
 [ESRCH]
 \fISig\fP is not a valid signal number.
 .TP 15
 [ESRCH]
-No process can be found corresponding to that specified by \fIpid\fP.
+No process can be found in the process group specified by \fIpgrp\fP.
+.TP 15
+[ESRCH]
+The process group was given as 0
+but the sending process does not have a process group.
 .TP 15
 [EPERM]
 The sending process is not the super-user and one or more
 .TP 15
 [EPERM]
 The sending process is not the super-user and one or more