Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^7: IO::Select and alarm()

by ikegami (Pope)
on Nov 02, 2011 at 19:34 UTC ( #935481=note: print w/replies, xml ) Need Help??

in reply to Re^6: IO::Select and alarm()
in thread IO::Select and alarm()

but I'm not sure what you're trying to show me.

It shows the select loop being exited. As I said, the OP did not want to exit the select loop.

I think the bigger question is when it wakes it up do you explicitly need to ignore the alarm inside the select loop?

If you don't, the select loop is exited, so you're asking why there is a need to not exit the select loop.

I don't believe there is such a universal need. Like I said, the OP has such a need, but apparently you don't.

That said, I suspect you didn't actually show your entire select loop, and that you actually ignore *all* errors. If so, you would also be ignoring EINTR just like I told the OP to do.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://935481]
[choroba]: Discipulus: I'm not sure what you really know and can code. But we have an interview process that should tell us :)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-06-29 13:30 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (667 votes). Check out past polls.