summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2009-12-01 06:12:31 +0000
committerkeramida <keramida@FreeBSD.org>2009-12-01 06:12:31 +0000
commit60a1c9a9096f7bbc1764a65206c39084b6541337 (patch)
treedc84507983bb78a8909d2a7f35efdbd3791dcd64 /lib/libc/sys
parent32cc2b56a77bafdbaa36b298213654cc42281683 (diff)
downloadFreeBSD-src-60a1c9a9096f7bbc1764a65206c39084b6541337.zip
FreeBSD-src-60a1c9a9096f7bbc1764a65206c39084b6541337.tar.gz
Describe what setpgid(2) does when pgid=0. The text has been
copied from NetBSD's manpage, and it also matches the behavior described by the Open Group's online copy of setpgid.2 at http://www.opengroup.org/onlinepubs/009695399/functions/setpgid.html Obtained from: NetBSD Submitted by: Petros Barbayiannis <petrosbarbayiannis@yahoo.gr> MFC after: 1 week
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/setpgid.25
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/sys/setpgid.2 b/lib/libc/sys/setpgid.2
index a56d831..4ad89de 100644
--- a/lib/libc/sys/setpgid.2
+++ b/lib/libc/sys/setpgid.2
@@ -54,6 +54,11 @@ to the specified
If
.Fa pid
is zero, then the call applies to the current process.
+If
+.Fa pgrp
+is zero, then the process id of the process specified by
+.Fa pid
+is used instead.
.Pp
If the affected process is not the invoking process, then it must be a
child of the invoking process, it must not have performed an
OpenPOWER on IntegriCloud