Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: perl dying without a trace

by Crackers2 (Parson)
on Oct 30, 2013 at 19:04 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-20 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found