poll: fix poll(0, NULL, msec)
authorJoachim Schmitz <jojo@schmitz-digital.de>
Thu, 13 Sep 2012 06:41:24 +0000 (08:41 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 13 Sep 2012 06:57:04 +0000 (08:57 +0200)
commitc3d1ccfdb375b4cb1b912116c084a61422ef47e3
tree3e890f479214937b0058820cb6e7dfad2e956672
parent20a4d1d3860aa7bca90e1b51501084d5c33ee4f1
poll: fix poll(0, NULL, msec)

* lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
but nfd is 0.  In that case poll should behave like select.

Copyright-paperwork-exempt: yes
ChangeLog
lib/poll.c