dmake 3.7 bug: loses child on 3b1

Piercarlo Grandi pcg at aber.ac.uk
Sat Jun 15 05:07:53 AEST 1991


On 13 Jun 91 01:00:35 GMT, haug at almira.uucp (Brian R. Haug) said:

haug> [ ... dmake calls getcwd(3) while it has children outstanding;
haug> since in many systems getcwd(3) just forks pwd(1), this makes
haug> for problems ... ]

haug> As best I can tell, this can not be easily fixed in any System V
haug> release (until V.4 when we get waitpid) unless you re-write the
haug> getcwd function, or the dmake function which calls getcwd.

There is fairly clever freeware implementation of getcwd(3) going
around, one version of which has been done by Doug Gwyn. This does not
call pwd(1), and solves the problem.
--
Piercarlo Grandi                   | ARPA: pcg%uk.ac.aber at nsfnet-relay.ac.uk
Dept of CS, UCW Aberystwyth        | UUCP: ...!mcsun!ukc!aber-cs!pcg
Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg at aber.ac.uk



More information about the Comp.sources.bugs mailing list