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

Re: select($rin,undef,undef,undef) only blocking once

by (anonymized user) (Curate)
on Jul 26, 2005 at 09:40 UTC ( #478111=note: print w/replies, xml ) Need Help??


in reply to select($rin,undef,undef,undef) only blocking once

select() only blocks until the filehandle is ready (from performing an implicit autoflush). Therefore, once this has happened the first time, nothing has changed in your loop to prevent the filehandle being ready instantly the second time around, so the blocking occurs thereafter for zero time.

Update: I note that in the code the filehandle stays set to empty, which would default it to standard input - this could be creating an additional obstacle..

Hope this helps,

Simon.

One world, one people

  • Comment on Re: select($rin,undef,undef,undef) only blocking once

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2021-01-21 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?