Konstantin Belousov 6d8fedda2c For some file types, select code registers two selfd structures. E.g.,
for socket, when specified POLLIN|POLLOUT in events, you would have one
selfd registered for receiving socket buffer, and one for sending. Now,
if both events are not ready to fire at the time of the initial scan,
but are simultaneously ready after the sleep, pollrescan() would iterate
over the pollfd struct twice. Since both times revents is not zero,
returned value would be off by one.

Fix this by recalculating the return value in pollout().

PR:	kern/143029
MFC after:	2 weeks
2010-08-28 17:42:08 +00:00
..
2010-06-28 18:17:21 +00:00
2010-08-06 09:44:01 +00:00
2010-08-19 16:41:27 +00:00
2010-07-09 10:57:55 +00:00
2010-06-28 18:17:21 +00:00
2010-08-26 11:20:57 +00:00
2010-01-04 20:59:52 +00:00
2009-05-26 09:19:21 +00:00
2010-06-26 21:44:45 +00:00