Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: use sysread to read non-blocking filehandle

by MidLifeXis (Monsignor)
on Nov 04, 2014 at 14:52 UTC ( #1106045=note: print w/replies, xml ) Need Help??


in reply to use sysread to read non-blocking filehandle

When you get EAGAIN, why are you exiting the loop? That indicator tells you that you should try another read, probably after a small delay -- basically you have not received any new data to read. Adjust that portion of code (don't call last) and your termination test in the while loop and you should see different results.

Ref: sysread, What does eagain mean (SO)

--MidLifeXis

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2020-10-25 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (249 votes). Check out past polls.

    Notices?