Date: Sat, 8 Jul 2006 14:56:28 +0200 From: Ed Schouten <ed@fxq.nl> To: FreeBSD Standards <freebsd-standards@freebsd.org> Subject: [Patch] jobs -p Message-ID: <20060708125628.GN83179@hoeg.nl>
next in thread | raw e-mail | index | archive | help
--8SdtHY/0P4yzaavF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, While taking a look at the FreeBSD POSIX 2001 Utility Compliance page[1], I saw that the jobs utility in /bin/sh doesn't support the -p flag, therefore not POSIX compliant. I wrote a small patch[2] that adds the -p flag to the jobs utility, by limiting the output to one process and running getpgid() on the pid. According to various sources, getpgid() returns the process group ID, which is also the process group leader. Can anyone confirm this? Yours, --=20 Ed Schouten <ed@fxq.nl> WWW: http://g-rave.nl/ [1] http://people.freebsd.org/~schweikh/posix-utilities.html [2] http://g-rave.nl/junk/freebsd-sh-jobs-posix.diff --8SdtHY/0P4yzaavF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEr6t852SDGA2eCwURAg4IAJ4moQ4Bco5iFxz6cs2fPyHFVJ+WowCfX/3p tQ/vblOrJpcoVu2/YMpLDXk= =lpyF -----END PGP SIGNATURE----- --8SdtHY/0P4yzaavF--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060708125628.GN83179>