Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: LWP is not SIGPIPE safe?

by Khen1950fx (Canon)
on Nov 28, 2012 at 16:24 UTC ( #1006070=note: print w/replies, xml ) Need Help??

in reply to LWP is not SIGPIPE safe?

One thing to remember is that SIGPIPE is global for that program. So, after looking at your examples, my guess is that the authors each had different requirements. GAAS may not have wanted to use SIGPIPE because of its global implications and requirements, and his usage of syswrite doesn't suggest that LWP isn't SIGPIPE safe.

Replies are listed 'Best First'.
Re^2: LWP is not SIGPIPE safe?
by OlegG (Monk) on Nov 28, 2012 at 17:25 UTC
    In HTTP::Tiny example "local $SIG{PIPE}" used, so it handles only sigpipe emitted from the block where it was installed.
    May be lwp's syswrite is safe. But I want to know reason why it is safe. For example: syswrite() can't fail if it was called immediately after socket opening and data length for write is small enough.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006070]
[LanX]: I don't get it
[LanX]: do I need to activate JS to see Trump loosing his wig?
[LanX]: aha ...
LanX Finally, there is a certain order or choreography to the greetings, which Kornhauser-Duda appears to have been following. First, the two heads of state shake hands, while the two first ladies do the same
[LanX]: FAKE NEWS , erix, so sad! Fired!

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2018-03-22 20:11 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (284 votes). Check out past polls.