Perl: the Markov chain saw | |
PerlMonks |
Re: I got IPC::Open3 to work!by siracusa (Friar) |
on Jul 23, 2005 at 00:57 UTC ( [id://477404]=note: print w/replies, xml ) | Need Help?? |
It doesn't look like you're handling
In practice, the details are somewhat reliant on the exact nature of the read(2) system call on your OS. The code above almost certainly does NOT handle all potential errors, but it's a start.
What you definitely don't want to do is treat something like an undef return caused by EINTR as a fatal error. That type of thing tends to crop up at the worst times (e.g., on a busy machine but never on your idle development box). sysread() has similar annoyances associated with it. If it's at all possible to use the blocking versions (read() and write()) it will make your life a lot easier.
In Section
Meditations
|
|