2007-01-03 Paolo Bonzini <bonzini@gnu.org>
authorPaolo Bonzini <bonzini@gnu.org>
Wed, 3 Jan 2007 10:51:18 +0000 (10:51 +0000)
committerPaolo Bonzini <bonzini@gnu.org>
Wed, 3 Jan 2007 10:51:18 +0000 (10:51 +0000)
commitceb9fb5512d62846bf8c281c3ee110297f9e0446
treed9a6f48fc346add824308e88706f3a9751408a16
parentf52ffc8ee8b3ad7ac0a0bbac8ba53007c6ba2586
2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
    Yoann Vandoorselaere <yoann.v@prelude-ids.com>

* lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
sockets, server sockets, and other file descriptors.  Count errors
to compute the return value.  Reorder the code a bit to be easier
to follow.  Don't set event bits that were not requested (except
POLLERR and POLLHUP).
ChangeLog
lib/poll.c