in reply to Detecting the close() of named pipes
On which side of the pipe did you register a $SIG{PIPE} handler?
If the reader closes the pipe, the writer to a pipe gets a SIGPIPE; if the writer closes it, the reader gets EOF.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Detecting the close() of named pipes
by betterworld (Curate) on Aug 23, 2006 at 18:53 UTC |