From 9d6a8fa42036fabbd5425e5ab96f8394997e9d11 Mon Sep 17 00:00:00 2001 From: robin2008 Date: Wed, 9 May 2018 17:47:55 +0800 Subject: [PATCH] make store_fd does not thow exception and the client could be closed. --- perl-xCAT/xCAT/Table.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index b61786685..e9db41dd0 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -351,7 +351,7 @@ sub init_dbworker { xCAT::MsgUtils->message("S", "xcatd: possible BUG encountered by xCAT DB worker " . $err); if ($currcon) { eval { #avoid hang by allowin client to die too - store_fd("*XCATBUGDETECTED*:$err:*XCATBUGDETECTED*\n", $currcon); + store_fd(["*XCATBUGDETECTED*:$err:*XCATBUGDETECTED*\n"], $currcon); $clientset->remove($currcon); close($currcon); };