Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!caen!Firewall!uunet!mcsun!ukc!dcl-cs!aber-cs!athene!pcg From: pcg@aber.ac.uk (Piercarlo Grandi) Newsgroups: comp.sources.bugs Subject: Re: dmake 3.7 bug: loses child on 3b1 Message-ID: Date: 14 Jun 91 19:07:53 GMT References: <1362@kosman.UUCP> <1991Jun13.010035.16040x@almira.uucp> Sender: pcg@aber-cs.UUCP Organization: Coleg Prifysgol Cymru Lines: 17 In-reply-to: haug@almira.uucp's message of 13 Jun 91 01:00:35 GMT On 13 Jun 91 01:00:35 GMT, haug@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@nsfnet-relay.ac.uk Dept of CS, UCW Aberystwyth | UUCP: ...!mcsun!ukc!aber-cs!pcg Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@aber.ac.uk