in reply to Re: sysread blocking ??
in thread sysread blocking ??
Yes, that does what I want, and I thank you for the fixes.
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 Section
Seekers of Perl Wisdom