]> Zhao Yanbai Git Server - minix.git/commit
libc: bugfixes for minix's poll(3) wrapper 63/3363/1
authorDavid van Moolenbroek <david@minix3.org>
Wed, 5 Oct 2016 17:37:56 +0000 (17:37 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 18 Oct 2016 12:18:41 +0000 (14:18 +0200)
commit6956dd2b516c6d226afb5b4ae854532a02fcbd3d
tree707e10ae9d52802c7f55ccd4a32b288cd94da60b
parent3ac58492b3d3709bad0ae9c60a137f63a90960b7
libc: bugfixes for minix's poll(3) wrapper

- clear "revents" fields even when the call times out;
- do not call FD_ISSET with a negative file descriptor number.

Change-Id: I7aeaae79e73e39aed127a75495ea08256b18c182
minix/lib/libc/sys/poll.c