Subject: setpgid manpage omission? (+other q)
To: None <email@example.com>
From: Peter Bex <Peter.Bex@student.kun.nl>
Date: 12/17/2003 18:15:54
Content-Type: text/plain; charset=us-ascii
I have some questions about setpgrp(2)/setpgid(2).
- The manpage says:
"setpgid() sets the process group of the specified process pid to the
specified pgrp. If pid is zero, then the call applies to the current
Doesn't pgrp =3D=3D 0 have a special meaning as well? According to the (Red=
Linux manpage (no flames please, I'm just doing research):
"If pgid is zero, the process ID of the process specified by pid is us=
If this is correct, the NetBSD manpage should be updated.
- What use does the statement setpgid(0,0) have? I don't see what that
would do. My initial guess is that it simply sets the process group of the
current process to the same it already is set to. What would be the benefits
of doing such an operation? I'm trying to port plugger 5.0 to pkgsrc-wip, a=
it does this.
- Why the fsck does Linux do this:
"In the Linux DLL 4.4.1 library, setpgrp simply calls setpgid(0,0)."
if it's copied straight off the old BSD behaviour for backwards compatibili=
I'm a little confused here. My personal thoughts are that Linux is just bei=
braindead here, and that setpgid doesn't do anything, but I just can't beli=
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
-----END PGP SIGNATURE-----