mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-07-03 03:03:34 +00:00
warm reset does not necessarily mean lost session
This commit is contained in:
@ -72,12 +72,13 @@ ipmi_mc_reset(struct ipmi_intf * intf, int cmd)
|
||||
req.msg.cmd = cmd;
|
||||
req.msg.data_len = 0;
|
||||
|
||||
if (cmd == BMC_COLD_RESET)
|
||||
intf->noanswer = 1;
|
||||
|
||||
rsp = intf->sendrecv(intf, &req);
|
||||
|
||||
if (cmd == BMC_COLD_RESET)
|
||||
intf->abort = 1;
|
||||
/* no meaningful return in many cases */
|
||||
|
||||
printf("Sent %s reset command to MC\n",
|
||||
(cmd == BMC_WARM_RESET) ? "warm" : "cold");
|
||||
|
Reference in New Issue
Block a user