From 4ff76833b4a2d217f1fdbb4ed753a342824a470a Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 19 Aug 1997 07:04:43 +0000 Subject: [PATCH] Forgot to mention what getpgid(0) does. --- lib/libc/sys/getpgrp.2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libc/sys/getpgrp.2 b/lib/libc/sys/getpgrp.2 index 6e9d1e4d211..ff43c0be2f2 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