http://www.perlmonks.org?node_id=681602


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