Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: capturing syswrite failures (die)

by tye (Sage)
on Mar 01, 2007 at 18:13 UTC ( #602737=note: print w/replies, xml ) Need Help??

in reply to capturing syswrite failures

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        

Replies are listed 'Best First'.
Re^2: capturing syswrite failures (die)
by bluto (Curate) on Mar 01, 2007 at 19:26 UTC
    FWIW, it's possible the NFS client itself is outputting the message (e.g. similar to the way unreachable NFS servers are reported by most clients I've seen) though that seems like a pretty worthless message for it to use.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://602737]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2018-07-17 08:05 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (358 votes). Check out past polls.