Date: Tue, 8 Apr 2003 22:17:08 +0400 From: "Andrey A. Chernov" <ache@nagual.pp.ru> To: Yar Tikhiy <yar@freebsd.org> Cc: arch@freebsd.org Subject: Re: termios & non-blocking I/O Message-ID: <20030408181707.GA42723@nagual.pp.ru> In-Reply-To: <20030408164614.GA7236@comp.chem.msu.su> References: <20030408164614.GA7236@comp.chem.msu.su>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030408181707.GA42723>