Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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
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 studying the Monastery: (3)
As of 2020-10-20 01:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (208 votes). Check out past polls.

    Notices?