It's a mystery to me how you arrived at this, since the book simply says: "The sysread function returns undef on error." I never imagined that includes no data to read. I presume I have to look elsewhere to see if it is a real error or just no characters to read.
It's also not clear to me why setting the parent to nonblocking causes an error.
In reply to Re^2: sysread blocking ??
by azadian
in thread sysread blocking ??
by azadian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |