cvs commit: src/usr.bin/make job.c job.h main.c make.c

Poul-Henning Kamp phk at phk.freebsd.dk
Sun Nov 14 15:45:36 GMT 2004


In message <41977CCC.8070607 at portaone.com>, Maxim Sobolev writes:

>Great job! However I wonder if use of pipe(2) would be better way, which 
>will not leave any traces behind it in the case when all makes die in a 
>way that prevents them from taking clean up actions (e.g. kill -9).

That's how gmake does it, and it is no end of trouble because you
have to hope for the file descriptors to survive open through shell
scripts and other gunk.  And passing the numeric filedescriptors
in an environment variable is wrong in all ways it possibly can be.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the cvs-src mailing list