Perl Monk, Perl Meditation | |
PerlMonks |
Re: Detect whether a writeable filehandle has closed?by ikegami (Patriarch) |
on Jan 15, 2021 at 02:50 UTC ( [id://11126940]=note: print w/replies, xml ) | Need Help?? |
If you ignore SIGPIPE ($SIG{PIPE} = 'IGNORE';), the write will result in error EPIPE instead. But it sounds like you really want to detect the child exiting. Add a $SIG{CHLD} handler.
In Section
Seekers of Perl Wisdom
|
|