Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 rifling through the Monastery: (10)
As of 2019-12-11 10:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?