Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: IPC::Open3::Simple closes database connection on error.

by ides (Deacon)
on Apr 19, 2008 at 00:39 UTC ( #681602=note: print w/ replies, xml ) Need Help??


in reply to IPC::Open3::Simple closes database connection on error.

After looking over the code, IPC::Open3::Simple doesn't do any forking, but it uses IPC::Open3 which does. So you are probably right about the cause.

I would definitely check for existance, readability, and execute bits before running it. I would also just run your ping, and if it fails reconnect to the database. That should cover all possibilities.

Frank Wiles <frank@revsys.com>
www.revsys.com


Comment on Re: IPC::Open3::Simple closes database connection on error.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://681602]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2014-09-17 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (72 votes), past polls