From: Douglas E. Quale (quale@saavik.cs.wisc.edu)
Date: 05/31/92


From: quale@saavik.cs.wisc.edu (Douglas E. Quale)
Subject: setpgrp wrong in libc-2.11c
Date: 1 Jun 1992 02:40:00 GMT

The 2.11c libraries don't do setpgrp right. setpgrp is BSD's name for
setpid (actually BSD had it first and POSIX took it and changed the name).
So, the prototype in <unistd.h> should give setpgrp 2 arguments (and
should be protected by an #ifdef __USE_BSD as well) and the implementation
has to be fixed in libc-2.11c/unistd/setpgid.c as well. The easiest way
to do this is to rip out the broken def of setpgrp in setpgid.c and use:

#include <gnu-stabs.h>

symbol_alias(setpid, setpgrp)

On a completely different note, execp still doesn't handle null path
components correctly (should treat PATH=:/bin same as PATH=.:/bin).
I recommend using GNU's execp or BSD's execp, both of which seem to
work fine.