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

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

by Tanalis (Curate)
on Jul 26, 2005 at 13:49 UTC ( #478190=note: print w/replies, xml ) Need Help??


in reply to Re^4: select($rin,undef,undef,undef) only blocking once
in thread select($rin,undef,undef,undef) only blocking once

You shouldn't use select with buffered reads, no - in that case, I'd stick with your solution, especially if you want to use explicit read timeouts.

My code was an example showing how you could avoid the use of select, if your circumstances permitted it - which it seems they don't :)

Replies are listed 'Best First'.
Re^6: select($rin,undef,undef,undef) only blocking once
by rabbit7 (Initiate) on Jul 27, 2005 at 11:13 UTC
    Hmm still would be cool if i dont have to reopen the FIFO everytime the loop gets executed. If anyone has a hint how to do that im glad to listen and try ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://478190]
help
Chatterbox?
[hippo]: That was around April 1994. Fun times.
[hippo]: They had purchased some shiny new 486 DXs the year before but crippled them by installing Win 3.1. I demo'd Linux with X on them to the department head and got the go-ahead to wipe Windows and install the new hotness.
[marto]: glory days ;)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2018-06-22 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (124 votes). Check out past polls.

    Notices?