I am doing a bit of experimenting with using named pipes to read and write data between perl and a php process. The write needs to come from a Perl cgi script. My question is on blocking and I am not sure how I should handle the blocking nature of the write. What I need to do is prevent the write from blocking if the read process has gone away. What kind of checks should I be putting in place? Does the blocking occur when opening the file handler on a named pipe or when I call for a write.
Can anyone help me out with the concepts a little?
thanks
Jon
In reply to writing to a named pipe by cyril
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |