+ # situation here is wierd, running external app
+ # involves fork+exec. At some point after fork,
+ # but before exec (or during) code can die in a
+ # child. Local is no help here as die throws
+ # error out of scope and locals are reset to old
+ # values. Instead we set values, eval code, check pid
+ # on failure and reset values only in our original
+ # process
+ my $dbh = $RT::Handle->dbh;
+ $dbh->{'InactiveDestroy'} = 1 if $dbh;
+ $RT::Handle->{'DisconnectHandleOnDestroy'} = 0;