From owner-svn-src-stable-8@FreeBSD.ORG Wed Jan 19 21:34:42 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B3AD106566C; Wed, 19 Jan 2011 21:34:42 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 59F698FC08; Wed, 19 Jan 2011 21:34:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p0JLYgQO089900; Wed, 19 Jan 2011 21:34:42 GMT (envelope-from keramida@svn.freebsd.org) Received: (from keramida@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p0JLYgAh089898; Wed, 19 Jan 2011 21:34:42 GMT (envelope-from keramida@svn.freebsd.org) Message-Id: <201101192134.p0JLYgAh089898@svn.freebsd.org> From: Giorgos Keramidas Date: Wed, 19 Jan 2011 21:34:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r217603 - stable/8/lib/libc/sys X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 21:34:42 -0000 Author: keramida (doc committer) Date: Wed Jan 19 21:34:42 2011 New Revision: 217603 URL: http://svn.freebsd.org/changeset/base/217603 Log: MFC r199985 from /head 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 Modified: stable/8/lib/libc/sys/setpgid.2 Directory Properties: stable/8/lib/libc/ (props changed) stable/8/lib/libc/locale/ (props changed) stable/8/lib/libc/stdtime/ (props changed) stable/8/lib/libc/sys/ (props changed) Modified: stable/8/lib/libc/sys/setpgid.2 ============================================================================== --- stable/8/lib/libc/sys/setpgid.2 Wed Jan 19 21:28:21 2011 (r217602) +++ stable/8/lib/libc/sys/setpgid.2 Wed Jan 19 21:34:42 2011 (r217603) @@ -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