mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-10 21:40:14 +00:00
make store_fd does not thow exception and the client could be closed.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user