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

Nothing would show up in the database log because the connection closes properly. After that it doesn't even notice that someone was jabbering to a socket that wasn't there.

The general solution to this kind of problem is to set InactiveDestroy on the database handle in the children. I suppose you could try setting InactiveDestroy on the handle in your script before the IPC::Open3::Simple call, and then unset it after the call.

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