When readahead data is available, poll needs to return POLLIN or POLLRDNORM, not POLLOUT

This commit is contained in:
Gregory Nutt
2013-05-23 07:16:46 -06:00
parent 16d04c7aa7
commit 9d280a58aa
3 changed files with 10 additions and 4 deletions
+2
View File
@@ -59,12 +59,14 @@
* Priority data may be read without blocking.
* POLLPRI
* High priority data may be read without blocking.
*
* POLLOUT
* Normal data may be written without blocking.
* POLLWRNORM
* Equivalent to POLLOUT.
* POLLWRBAND
* Priority data may be written.
*
* POLLERR
* An error has occurred (revents only).
* POLLHUP