Hi,
I have a PERL script that connects to a DB2 database. Everything works
fine, but if the script receives a control-c when it's running, it doesn't
seem to disconnect. I added the following to my PERL script to trap it:
use sigtrap qw(die untrapped normal-signals
stack-trace any error-signals);
However, when I interrupt it, I still get an error:
DBD::DB2::db disconnect failed: Free henv failed at
/fmac/dev/fin/ofheorbc/lib/D
BUtil.pm line 862.
END failed--cleanup aborted.
Actually I thought that the DBI automatically disconnected even if the
script didn't disconnect, but the production staff here told me that the
script never disconnected when it was interrupted.
Any suggestions?