Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!sdd.hp.com!think.com!hsdndev!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.programmer Subject: Re: how to use pipes (was: Re: system() question) Message-ID: <8431:Mar803:27:1291@kramden.acf.nyu.edu> Date: 8 Mar 91 03:27:12 GMT References: <1991Mar3.214844.15444@csusac.csus.edu> <5866:Mar604:22:3791@kramden.acf.nyu.edu> <1991Mar7.180531.7907@csusac.csus.edu> Organization: IR Lines: 8 In article <1991Mar7.180531.7907@csusac.csus.edu> emmonsl@athena.ecs.csus.edu (L. Scott Emmons) writes: > In article <5866:Mar604:22:3791@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: > >This is, of course, because you aren't waiting for the child to finish. > Actually, it does finish...the child closes the pipeline down when it is done. Irrelevant. Your parent does not call wait(), so your timings are wrong. ---Dan