diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-04-07 12:42:07 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-04-07 12:42:07 +0000 |
commit | 353e5636307914c34c0bd10d18cb9c23e9186b8e (patch) | |
tree | 957cc238cd3aaf1ebd640e208c9b466d6b43ff1e /pod/perlfunc.pod | |
parent | 55082927c3a5e85aa9f9d6c8e76cacf11d232232 (diff) | |
download | perl-353e5636307914c34c0bd10d18cb9c23e9186b8e.tar.gz |
Mention that select() returns -1 on error,
as suggested by Hernan Perez Masci
p4raw-id: //depot/perl@24194
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 97d0b752ab..0fceb30dcc 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4603,6 +4603,9 @@ Note that whether C<select> gets restarted after signals (say, SIGALRM) is implementation-dependent. See also L<perlport> for notes on the portability of C<select>. +On error, C<select> behaves like the select(2) system call : it returns +-1 and sets C<$!>. + 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. |