summaryrefslogtreecommitdiff
path: root/doc/posix-functions/select.texi
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-09-13 08:51:16 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-09-13 08:57:01 +0200
commit48e7c1cff9531ce0fe05108ea7ec69f2d20472b5 (patch)
tree29badae1b4a9a5553784dabd0d39591551d99679 /doc/posix-functions/select.texi
parent70d61f6c220a86950889eeeb41e54630e7c31c7d (diff)
downloadgnulib-48e7c1cff9531ce0fe05108ea7ec69f2d20472b5.tar.gz
poll/select: document portability problems not fixed by Gnulib.
* doc/posix-functions/poll.texi: poll does not work well on pipes under Windows. It has the same limitations as select on BeOS. * doc/posix-functions/select.texi: select does not work well on pipes under Windows.
Diffstat (limited to 'doc/posix-functions/select.texi')
-rw-r--r--doc/posix-functions/select.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/posix-functions/select.texi b/doc/posix-functions/select.texi
index e59b3cf8e6..c13b30f55a 100644
--- a/doc/posix-functions/select.texi
+++ b/doc/posix-functions/select.texi
@@ -31,6 +31,10 @@ unmodified.
On BeOS, @code{select} can only be called on descriptors created by the
@code{socket} function, not on regular file descriptors.
@item
+Under Windows, when passing a pipe, Gnulib's @code{select} replacement might
+return 0 even before the timeout has passed. Programs using it with pipes can
+thus busy wait.
+@item
On Solaris 2.6 and older, @code{select} applied to a file descriptor opened
for reading and associated with @code{/dev/null} hangs, waiting for input,
when instead it should return immediately.