On Jun 15, Alan Curry wrote:
> Nick Cabatoff writes the following:
> >In my perl script I read from a file handle, which happens to be a
> >pipe. At some point the child process I'm reading from terminates
> >normally (and becomes a zombie), but what should be a last read
> >operation that returns nothing instead never returns at all.
>
> Did you pipe, fork, and then forget to close the writing end of the
> pipe in the parent process?
No, it's a seperate program that comprises the writing end. The perl
code is equivalent to
open(FH,"/bin/true|") || die;
@output = <FH>;
(only I'm expecting a bit more output than from /bin/true... :)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:36 EST