Think about Loose Coupling | |
PerlMonks |
Re: What makes IO::Select::can_read return?by Joost (Canon) |
on Feb 01, 2005 at 22:38 UTC ( [id://427083]=note: print w/replies, xml ) | Need Help?? |
If I read the docs:
It never says it's always going to wait for the TIMEOUT, it just says it's not going to wait longer than the timeout. AFAIK this might be a bug in perl, a bug in your OS, or it might be a completely reasonable effect of the way select() is implemented... According to my select(2) manpage (on Linux) errno should be set when select(2) returns -1. Try printing $! in your else routine. Also note that you should not use buffered IO when using select (so use sysread() and syswrite() instead of read() if you don't already).
In Section
Seekers of Perl Wisdom
|
|