From owner-freebsd-standards@FreeBSD.ORG Mon Sep 25 07:20:34 2006 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 206E916A589 for ; Mon, 25 Sep 2006 07:20:34 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 143A443D64 for ; Mon, 25 Sep 2006 07:20:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8P7KRs0067224 for ; Mon, 25 Sep 2006 07:20:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8P7KRf0067223; Mon, 25 Sep 2006 07:20:27 GMT (envelope-from gnats) Date: Mon, 25 Sep 2006 07:20:27 GMT Message-Id: <200609250720.k8P7KRf0067223@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Ed Schouten Cc: Subject: Re: standards/99926: [Patch] [sh(1)'s jobs] POSIX compliancy by adding -p switch X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ed Schouten List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2006 07:20:34 -0000 The following reply was made to PR standards/99926; it has been noted by GNATS. From: Ed Schouten To: Roman Bogorodskiy Cc: bug-followup@FreeBSD.org, Maxim Konovalov Subject: Re: standards/99926: [Patch] [sh(1)'s jobs] POSIX compliancy by adding -p switch Date: Mon, 25 Sep 2006 09:15:03 +0200 --FhHtzeYSSYv4Pwk7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Roman Bogorodskiy wrote: > > * Roman Bogorodskiy wrote: > > > IMHO, this patch is wrong. You just print the actual PID of the proce= ss, > > > not the PID of the group leader. > > >=20 > > > I have a simular patch, which however prints PID of the group obtained > > > with getpgid() for the appropriate process: > > >=20 > > > http://people.freebsd.org/~novel/patches/freebsd/src_bin_sh_jobs_p.di= ff > >=20 > > It prints the PID of the first process, which is the process group > > leader. >=20 > Hm, sorry, I missed that part of the patch. However I wasn't able to > find out if the PID of the first process in group is the process group > leader in the docs. Is there any difference between getpgrp() and first > PID of the group? No, process groups are identified by the process ID of the group leader. --=20 Ed Schouten WWW: http://g-rave.nl/ --FhHtzeYSSYv4Pwk7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFF4H252SDGA2eCwURAhN3AJ9ZkChu/MlZYqjaTynjbqbXgp/xNACfYWIX eW3S72rWkQdjynK9KcrhgAA= =iqPR -----END PGP SIGNATURE----- --FhHtzeYSSYv4Pwk7--