diff options
author | 2007-07-21 20:35:28 +0000 | |
---|---|---|
committer | 2007-07-21 20:35:28 +0000 | |
commit | 408ecb98c1ae64a63bc85c8c280c9b13b89de65a (patch) | |
tree | dcf106996943e2ca3ef7af7fb1e0bc92cb0a86a0 /lib | |
parent | make one of the lists -compact, to avoid some yucky vertical blankspace; (diff) | |
download | wireguard-openbsd-408ecb98c1ae64a63bc85c8c280c9b13b89de65a.tar.xz wireguard-openbsd-408ecb98c1ae64a63bc85c8c280c9b13b89de65a.zip |
- this page describes getpgid.2 too
- describe when "pid" is zero; from Kristaps Dzonsons
ok millert
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/getpgrp.2 | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/libc/sys/getpgrp.2 b/lib/libc/sys/getpgrp.2 index 382553939df..adc9ab9701b 100644 --- a/lib/libc/sys/getpgrp.2 +++ b/lib/libc/sys/getpgrp.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getpgrp.2,v 1.13 2007/05/31 19:19:32 jmc Exp $ +.\" $OpenBSD: getpgrp.2,v 1.14 2007/07/21 20:35:28 jmc Exp $ .\" $NetBSD: getpgrp.2,v 1.8 1995/02/27 12:33:09 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,11 +30,12 @@ .\" .\" @(#)getpgrp.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: July 21 2007 $ .Dt GETPGRP 2 .Os .Sh NAME -.Nm getpgrp +.Nm getpgrp , +.Nm getpgid .Nd get process group .Sh SYNOPSIS .Fd #include <unistd.h> @@ -49,6 +50,11 @@ The process group of the .Fa pid process 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 @@ -56,7 +62,7 @@ that have the same process group as the terminal are foreground and may read, while others will block with a signal if they attempt to read. .Pp -This call is thus used by programs such as +These calls are thus used by programs such as .Xr csh 1 to create process groups |