Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: IO::Socket::UNIX unexpected death

by lom (Sexton)
on Jun 30, 2009 at 11:37 UTC ( [id://775987]=note: print w/replies, xml ) Need Help??


in reply to Re: IO::Socket::UNIX unexpected death
in thread IO::Socket::UNIX unexpected death

Hi,

Did you tried trapping signal SIGPIPE?
I did not try that, and SIGPIPE can be and indeed is trapped on the second print. From there, I should be able to properly deal with this case. Thanks a lot for this! I am surprised there is no other OOish way to find that out before the actual write, though.

eof might help you to find out whether the filehandle is closed or open
eof ($write) is actually blocking in the write script, so not really of use to me in this instance. It might be because of the way the socket is opened, only for writing, not for reading?

Thanks a lot for you insight.

  • Comment on Re^2: IO::Socket::UNIX unexpected death

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-18 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found