Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mcnc!sps From: sps@mcnc.org (Stephen Schaefer) Newsgroups: comp.lang.perl Subject: Re: Wait for an output pipe? Message-ID: Date: 28 Sep 90 12:34:06 GMT References: <9708@jpl-devvax.JPL.NASA.GOV> Sender: daemon@mcnc.org Distribution: comp Organization: Microelectronics Center of North Carolina Lines: 20 In-reply-to: lwall@jpl-devvax.JPL.NASA.GOV's message of 27 Sep 90 17:14:47 GMT In article <9708@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: : In the man page, under open, it says : : Explicitly closing any piped filehandle causes the : parent process to wait for the child to finish, and : returns the status value in $?. : : So you simply have to close the RDIST filehandle. Thank you, and all others, for the answer. I confused myself by assuming that the implicit file closes on exit would behave the same as an explicit close. Mea culpa. That is NOT in any way to suggest that perl *should* behave that way: one should be able to exit *without* waiting for the pipe's process to finish, and the current arrangement seems to me the most elegant way to achieve that. -- Stephen P. Schaefer, Postmaster MCNC sps@mcnc.org P.O. Box 12889 ...!mcnc!sps RTP, NC 27709