Sure, setting pipes to nonblocking mode is not a problem. The fcntl paragraph in the perlfunc manpage tells you how to do it. For checking the filehandle for available input or output, consider using the IO::Select module instead of select directly. Who knows, perhaps the underlying implementation is in terms of the poll system call if it is available and you will not have to worry about the limitations of select (and if it isn't, then it could be!).
In reply to Re: Non-blocking Pipes?
by Celada
in thread Non-blocking Pipes?
by aka1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |