cvs commit: src/sys/kern subr_bus.c
Warner Losh
imp at FreeBSD.org
Sun Apr 20 22:58:52 PDT 2003
imp 2003/04/20 22:58:51 PDT
FreeBSD src repository
Modified files:
sys/kern subr_bus.c
Log:
Fix /dev/devctl's implementation of poll. We should only be setting
the poll bits when there's actually something in the queue.
Otherwise, select always returned '2' when there were no items to be
read, and '3' when there were. This would preclude being able to read
in a threaded (libc_r) program, as well as checking to see if there
were pending events or not.
Revision Changes Path
1.126 +5 -11 src/sys/kern/subr_bus.c
More information about the cvs-src
mailing list