summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-08-19 07:04:43 +0000
committerpeter <peter@FreeBSD.org>1997-08-19 07:04:43 +0000
commitb40bf7afa234c2c3004ea892d3805a4a7a21ff02 (patch)
tree1051d9611749078d26eeace0dad6f4cf3ba6be4d
parent4ca1f3fe2ff8665fdf0ee06ab7e377996a5054e0 (diff)
downloadFreeBSD-src-b40bf7afa234c2c3004ea892d3805a4a7a21ff02.zip
FreeBSD-src-b40bf7afa234c2c3004ea892d3805a4a7a21ff02.tar.gz
Forgot to mention what getpgid(0) does.
-rw-r--r--lib/libc/sys/getpgrp.25
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/sys/getpgrp.2 b/lib/libc/sys/getpgrp.2
index 6e9d1e4..ff43c0b 100644
--- a/lib/libc/sys/getpgrp.2
+++ b/lib/libc/sys/getpgrp.2
@@ -50,6 +50,11 @@ The process group of the process identified by
.Fa pid
is returned by
.Fn getpgid .
+If
+.Fa pid
+is zero,
+.Fn getpgid
+returns the process group of the current process.
.Pp
Process groups are used for distribution of signals, and
by terminals to arbitrate requests for their input: processes
OpenPOWER on IntegriCloud