develooper Front page | perl.perl5.porters | Postings from May 2003

Re: Meaning of sysread()

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
May 21, 2003 09:26
Subject:
Re: Meaning of sysread()
Message ID:
20030521162522.2695.3@bactrian.elixent.com
Graham Barr <gbarr@pobox.com> writes:
>> Devious work-rounds like failing with EAGAIN might work round this...
>
>But how do you know if to block or not ? 

Whoops yes.

>If the application does
>not call select and just calls sysread(), then it is expecting it
>to block until something becomes available. That is unless
>they have explicitly set the handle to be non-blocking

Right. So character-completion logic would have to query (or already know
somehow) that it was a non-blocking handle otherwise block.
So it at least complicates things...

-- 
Nick Ing-Simmons
http://www.ni-s.u-net.com/


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About