standards/99926: [Patch] [sh(1)'s jobs] POSIX compliancy by adding -p switch

Roman Bogorodskiy novel at FreeBSD.org
Sun Sep 24 23:00:50 PDT 2006


The following reply was made to PR standards/99926; it has been noted by GNATS.

From: Roman Bogorodskiy <novel at FreeBSD.org>
To: Ed Schouten <ed at fxq.nl>
Cc: bug-followup at FreeBSD.org, Maxim Konovalov <maxim at FreeBSD.org>
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 <novel at FreeBSD.org> 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--


More information about the freebsd-standards mailing list