poll: fix for systems that can't recv() on a non-socket
authorJoachim Schmitz <jojo@schmitz-digital.de>
Thu, 13 Sep 2012 06:55:08 +0000 (08:55 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 13 Sep 2012 06:57:02 +0000 (08:57 +0200)
commit20a4d1d3860aa7bca90e1b51501084d5c33ee4f1
treede58962a401aa263cd4fb171af676136b6ee3008
parent48e7c1cff9531ce0fe05108ea7ec69f2d20472b5
poll: fix for systems that can't recv() on a non-socket

* lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
is readable.  In this case POLLHUP will not be supported.
* doc/posix-functions/poll.texi: Document this.

Copyright-paperwork-exempt: yes
ChangeLog
doc/posix-functions/poll.texi
lib/poll.c