Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Safe Pipe Opens and Implicit Loops

by martin (Friar)
on Jul 11, 2010 at 20:51 UTC ( [id://848879]=note: print w/replies, xml ) Need Help??


in reply to Re: Safe Pipe Opens and Implicit Loops
in thread Safe Pipe Opens and Implicit Loops

Instead of hooking into the warning, you could use alarm.

No luck with that. At least on MacOS X, pending alarms seem to be postponed while open is doing its retry loop. Maybe the signal is needed for waiting between retries and other SIGALRM handlers are deactivated hence. I see them fire in both parent and child once fork is successful, but not during the retry loop, which does not help at all.

To summarize, open3 seems to be the way to go, and I stand corrected in that the behaviour is not quite new.

  • Comment on Re^2: Safe Pipe Opens and Implicit Loops

Replies are listed 'Best First'.
Re^3: Safe Pipe Opens and Implicit Loops
by Anonymous Monk on Jul 11, 2010 at 23:16 UTC
    try enabling unsafe signals

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-25 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found