in reply to unexpected program abort on write on closed handle
Firstly, whether to handle the signal as a warning or an error. For example, you could assign $SIG{ PIPE } to a handler that treats it as a warning, e.g.
The second decision of course being whether to use Devel::Trace as would be necessary for the above example, so that the signal handler reports where in the code it was invoked.$SIG{ PIPE } = sub { warn "Broken pipe trap, traceback follows:\n" . T +race::trace(); }
One world, one people
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unexpected program abort on write on closed handle
by Beechbone (Friar) on Jul 25, 2005 at 09:23 UTC | |
by anonymized user 468275 (Curate) on Jul 25, 2005 at 09:35 UTC |