mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 11:07:23 +00:00
ID:345 - Do not do several close session retries when catching SIGINT
Reduce number of retries to 1 when closing interface on SIGINT. This reduces time needed to terminate the LAN connection.
This commit is contained in:
parent
e9c3de03c3
commit
d671052143
@ -270,6 +270,11 @@ void ipmi_catch_sigint()
|
|||||||
{
|
{
|
||||||
if (ipmi_main_intf != NULL) {
|
if (ipmi_main_intf != NULL) {
|
||||||
printf("\nSIGN INT: Close Interface %s\n",ipmi_main_intf->desc);
|
printf("\nSIGN INT: Close Interface %s\n",ipmi_main_intf->desc);
|
||||||
|
/* reduce retry count to a single retry */
|
||||||
|
if (ipmi_main_intf->session) {
|
||||||
|
ipmi_main_intf->session->retry = 1;
|
||||||
|
}
|
||||||
|
/* close interface */
|
||||||
ipmi_main_intf->close(ipmi_main_intf);
|
ipmi_main_intf->close(ipmi_main_intf);
|
||||||
}
|
}
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user