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

Re: Meaning of sysread()

Thread Previous | Thread Next
Nick Ing-Simmons
May 21, 2003 09:26
Re: Meaning of sysread()
Message ID:
Graham Barr <> 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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About