2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 01:26:38 +00:00

make store_fd does not thow exception and the client could be closed.

This commit is contained in:
robin2008 2018-05-09 17:47:55 +08:00
parent b39dcac7ff
commit 9d6a8fa420

View File

@ -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);
};