Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Non-blocking IO and threads

by runrig (Abbot)
on Oct 06, 2011 at 19:00 UTC ( #930046=note: print w/ replies, xml ) Need Help??


in reply to Non-blocking IO and threads

FWIW, I do not get the hang if I put a close STDIN; in the first while loop, and the rest still seems to work:

while (1) { close STDIN; ... }
Duh, I guess that should also work if the close is before the while loop...(update: yep, it does):
close STDIN; while (1) { ... }


Comment on Re: Non-blocking IO and threads
Select or Download Code
Replies are listed 'Best First'.
Re^2: Non-blocking IO and threads
by PhillyR (Acolyte) on Oct 06, 2011 at 19:38 UTC
    This worked for me! Thank you. My proxy server now has the ability to shut down from the command prompt.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2015-07-31 18:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls