From 961646994d04e41a59c48e600b9fdf4b89443185 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 24 Apr 2012 19:17:06 +0000 Subject: [PATCH] Have Table.pm properly bail out in the event of a bug git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12334 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Table.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index 691c12841..ad591cc80 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -204,6 +204,8 @@ sub init_dbworker { eval { #avoid hang by allowin client to die too print $currcon "*XCATBUGDETECTED*:$err:*XCATBUGDETECTED*\n"; print $currcon "*XCATBUGDETECTED*76e9b54341\n"; + $clientset->remove($currconn); + close($currcon); }; } }