diff options
| author | Dima Dorfman <dd@FreeBSD.org> | 2001-04-26 02:02:06 +0000 |
|---|---|---|
| committer | Dima Dorfman <dd@FreeBSD.org> | 2001-04-26 02:02:06 +0000 |
| commit | 1c6f1d49c269e86fb06fcd4f7f572072f0782a2d (patch) | |
| tree | 4204ea7dbaff10d2978abc14a5cb78d2f17d9f9f /lib/libc | |
| parent | 1ec303bdd754fc145fac1e07c1e8b9e84164a9e1 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/sys/getpgrp.2 | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/libc/sys/getpgrp.2 b/lib/libc/sys/getpgrp.2 index 8e5670825ab3..db00707a290c 100644 --- a/lib/libc/sys/getpgrp.2 +++ b/lib/libc/sys/getpgrp.2 @@ -76,6 +76,24 @@ and .Fn tcsetpgrp calls are used to get/set the process group of the control terminal. +.Sh RETURN VALUES +The +.Fn getpgrp +call always succeeds. +Upon successful completion, the +.Fn getpgid +call returns the process group of the specified process; +otherwise, it returns a value of \-1 and sets +.Va errno +to indicate the error. +.Sh ERRORS +.Fn getpgid +will succeed unless: +.Bl -tag -width Er +.It Bq Er ESRCH +there is no process whose process ID equals fo +.Fa pid +.El .Sh SEE ALSO .Xr getsid 2 , .Xr setpgid 2 , @@ -87,7 +105,7 @@ function call appeared in .Bx 4.0 . The .Fn getpgid -function call is derived from it's usage in System V Release 4. +function call is derived from its usage in System V Release 4. .Sh STANDARDS The .Fn getpgrp |
