From 84518325ab3000274b33de78a5082a63382ecbb7 Mon Sep 17 00:00:00 2001 From: Giorgos Keramidas Date: Tue, 1 Dec 2009 06:12:31 +0000 Subject: 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 MFC after: 1 week --- lib/libc/sys/setpgid.2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libc/sys/setpgid.2 b/lib/libc/sys/setpgid.2 index a56d83123d39..4ad89de3263f 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 -- cgit v1.2.3