2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 19:20:24 +00:00

Merge pull request #5184 from robin2008/xcatdb_die

make store_fd does not thow exception and the client could be closed.
This commit is contained in:
zet809
2018-05-10 13:46:32 +08:00
committed by GitHub

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