diff options
author | Joachim Schmitz <jojo@schmitz-digital.de> | 2012-09-13 08:55:08 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-13 08:57:02 +0200 |
commit | 20a4d1d3860aa7bca90e1b51501084d5c33ee4f1 (patch) | |
tree | de58962a401aa263cd4fb171af676136b6ee3008 /doc | |
parent | 48e7c1cff9531ce0fe05108ea7ec69f2d20472b5 (diff) | |
download | gnulib-20a4d1d3860aa7bca90e1b51501084d5c33ee4f1.tar.gz |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-functions/poll.texi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/posix-functions/poll.texi b/doc/posix-functions/poll.texi index da619b99dd..ec1bdda9cd 100644 --- a/doc/posix-functions/poll.texi +++ b/doc/posix-functions/poll.texi @@ -10,7 +10,7 @@ Portability problems fixed by Gnulib: @itemize @item This function is missing on some platforms: -mingw, MSVC 9, BeOS. +mingw, MSVC 9, BeOS, HP NonStop. @item This function doesn't work on special files like @file{/dev/null} and ttys like @file{/dev/tty} on some platforms: @@ -27,4 +27,8 @@ created by the @code{socket} function, not on regular file descriptors. Under Windows, when passing a pipe, Gnulib's @code{poll} replacement might return 0 even before the timeout has passed. Programs using it with pipes can thus busy wait. + +@item +Under HP NonStop, file descriptors other than sockets do not support +POLLHUP; they will return a "readable" status instead. @end itemize |