Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: perl dying without a trace

by Crackers2 (Parson)
on Oct 30, 2013 at 19:04 UTC ( #1060417=note: print w/replies, xml ) Need Help??


in reply to Re: perl dying without a trace
in thread perl dying without a trace

See my response to diatolevi. You have to add a SIGPIPE handler to your code.

Mine is as simple as:

$SIG{PIPE} = sub { print STDERR "SIGPIPE @_\n"; };

Which basically just ignores the SIGPIPE and leaves it to you to handle the error after the syswrite

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1060417]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2022-08-08 19:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?