From owner-freebsd-standards@FreeBSD.ORG Mon Sep 25 06:00:50 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 2CC0C16A4D8 for ; Mon, 25 Sep 2006 06:00:50 +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 4F57743D58 for ; Mon, 25 Sep 2006 06:00:49 +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 k8P60n8l061309 for ; Mon, 25 Sep 2006 06:00:49 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8P60njX061308; Mon, 25 Sep 2006 06:00:49 GMT (envelope-from gnats) Date: Mon, 25 Sep 2006 06:00:49 GMT Message-Id: <200609250600.k8P60njX061308@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Roman Bogorodskiy 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: Roman Bogorodskiy List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2006 06:00:50 -0000 The following reply was made to PR standards/99926; it has been noted by GNATS. From: Roman Bogorodskiy To: Ed Schouten Cc: bug-followup@FreeBSD.org, Maxim Konovalov Subject: Re: standards/99926: [Patch] [sh(1)'s jobs] POSIX compliancy by adding -p switch Date: Sun, 24 Sep 2006 09:58:11 +0000 --TiqCXmo5T1hvSQQg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ed Schouten wrote: > * Roman Bogorodskiy wrote: > > IMHO, this patch is wrong. You just print the actual PID of the process, > > 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.diff >=20 > It prints the PID of the first process, which is the process group > leader. 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? Roman Bogorodskiy --TiqCXmo5T1hvSQQg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iQCVAwUBRRZWs4B0WzgdqspGAQLzXwP+J+7hL8dxduCg8IxTYsql7ZjPUdSdgZ8J IpkA2NaKMmsm3vBB4bkHNxjuyDMPP3L3kNNEfiQOLEWF7PJ58lwhqlcMlxZYSW+t 0jq918v682f6d7tTpDoxDhnNwN9AU33+yAhgPonlg/eo0mGJ+FvUzW8l8LUbsewn i9whWLpDhSw= =lIRb -----END PGP SIGNATURE----- --TiqCXmo5T1hvSQQg--