diff options
Diffstat (limited to 'lib/libc/sys/getpgrp.2')
-rw-r--r-- | lib/libc/sys/getpgrp.2 | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/libc/sys/getpgrp.2 b/lib/libc/sys/getpgrp.2 index 7ad5ef3799b..e278dcd070d 100644 --- a/lib/libc/sys/getpgrp.2 +++ b/lib/libc/sys/getpgrp.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getpgrp.2,v 1.6 1999/07/04 18:59:43 aaron Exp $ +.\" $OpenBSD: getpgrp.2,v 1.7 2000/09/12 17:30:45 millert Exp $ .\" $NetBSD: getpgrp.2,v 1.8 1995/02/27 12:33:09 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -71,6 +71,20 @@ and .Fn tcsetpgrp calls are used to get/set the process group of the control terminal. +.Sh ERRORS +.Fn getpgrp +always succeeds, however +.Fn getpgid +will succeed unless: +.Bl -tag -width Er +.It Bq Er EPERM +if the current process and the process +.Fa pid +are not in the same session. +.It Bq Er ESRCH +if there is no process with a process ID equal to +.Fa pid . +.El .Sh SEE ALSO .Xr setpgid 2 , .Xr termios 4 |