standards/99926: [Patch] [sh(1)'s jobs] POSIX compliancy by
adding -p switch
ed at fxq.nl
Mon Sep 25 00:20:34 PDT 2006
The following reply was made to PR standards/99926; it has been noted by GNATS.
From: Ed Schouten <ed at fxq.nl>
To: Roman Bogorodskiy <novel at FreeBSD.org>
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: Mon, 25 Sep 2006 09:15:03 +0200
Content-Type: text/plain; charset=us-ascii
* Roman Bogorodskiy <novel at FreeBSD.org> wrote:
> > * Roman Bogorodskiy <novel at FreeBSD.org> wrote:
> > > IMHO, this patch is wrong. You just print the actual PID of the proce=
> > > 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=
> > 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?
No, process groups are identified by the process ID of the group leader.
Ed Schouten <ed at fxq.nl>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
-----END PGP SIGNATURE-----
More information about the freebsd-standards