It sounds to me like you are already capturing syswrite failures and then just doing die "Write failure\n", but that is a bit of a guess on my part. syswrite doesn't write error messages when it fails.
So likely all you need to do is replace the code that is already detecting these failures with code that does what you want done instead. You didn't show us any code so it is hard for me to be more specific than that.
- tye
In reply to Re: capturing syswrite failures (die)
by tye
in thread capturing syswrite failures
by Brad.Walker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |