]> granicus.if.org Git - php/commit
Refine stream_select() to work with streams that have data in their read
authorWez Furlong <wez@php.net>
Mon, 21 Oct 2002 22:54:37 +0000 (22:54 +0000)
committerWez Furlong <wez@php.net>
Mon, 21 Oct 2002 22:54:37 +0000 (22:54 +0000)
commitdabf1053cdbd1bf8cd9020d16b41eb6b7ca2013f
tree84cb33061e3e0e32ddec7c432b5d4b64c5c85233
parent102c94550126b9e004d22620300033f0fe9a2006
Refine stream_select() to work with streams that have data in their read
buffers.
When selecting for read, the streams are examined; if any of them have
pending read data, no actual select(2) call is performed; instead the
streams with buffered data are returned; just like a regular select
call.
Prevent erroneous warning in stream_select when obtaining the fd.
ext/standard/file.c
main/php_streams.h
main/streams.c