termios & non-blocking I/O
Andrey A. Chernov
ache at nagual.pp.ru
Tue Apr 8 11:17:12 PDT 2003
On Tue, Apr 08, 2003 at 20:46:14 +0400, Yar Tikhiy wrote:
> While not in disagreement with POSIX[1], such a behaviour has at
> least one unwelcome consequence: If a program has been compiled
> with ``-pthread'', the TIME counter won't work on terminal descriptors
> that are in blocking mode from the program's point of view -- read(2)
> will instantly return 0 on them. That is because the following
> scenario will happen:
...
> Shouldn't both TIME and MIN cases be uniform in returning -1/EAGAIN
> on non-blocking descriptors?
It means that libc_r MIN/TIME handling should be fixed to conform POSIX
and not general MIN/TIME handling way.
--
Andrey A. Chernov
http://ache.pp.ru/
More information about the freebsd-arch
mailing list