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:
Zdenek Styblik 2014-11-29 18:06:13 +01:00
parent e9c3de03c3
commit d671052143

View File

@ -270,6 +270,11 @@ void ipmi_catch_sigint()
{
if (ipmi_main_intf != NULL) {
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);
}
exit(-1);