summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorHernan Perez Masci <hmasci@uolsinectis.com.ar>2005-04-08 12:28:28 -0300
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-04-11 09:21:54 +0000
commitec8ce15a509319429ec7650026fe4a9ff9f2ee0d (patch)
treea8036c1e0f6b200f084438ca1f49128bb47663be /pod
parent5c477709a8f3aa3110d51ae872950c20ff14fed6 (diff)
downloadperl-ec8ce15a509319429ec7650026fe4a9ff9f2ee0d.tar.gz
perlfunc.pod: incomplete select description
Message-Id: <200504081528.28307.hmasci@uolsinectis.com.ar> p4raw-id: //depot/perl@24224
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod6
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 552587aa5a..921bc2de09 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -4605,6 +4605,12 @@ portability of C<select>.
On error, C<select> returns C<undef> and sets C<$!>.
+Note: on some Unixes, the select(2) system call may report a socket file
+descriptor as "ready for reading", when actually no data is available,
+thus a subsequent read blocks. It can be avoided using always the
+O_NONBLOCK flag on the socket. See select(2) and fcntl(2) for further
+details.
+
B<WARNING>: One should not attempt to mix buffered I/O (like C<read>
or <FH>) with C<select>, except as permitted by POSIX, and even
then only on POSIX systems. You have to use C<sysread> instead.