ipmi_main.c (f1c6118c722ba4f20f3bdb2324503821a33b4e3d) ipmi_main.c (eb54136775f63a6a159f3c55ee4772d7aa363cc4)
1/*
2 * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * Redistribution of source code must retain the above copyright

--- 258 unchanged lines hidden (view full) ---

267 *
268 * returns -1
269 */
270void ipmi_catch_sigint()
271{
272 if (ipmi_main_intf != NULL) {
273 printf("\nSIGN INT: Close Interface %s\n",ipmi_main_intf->desc);
274 /* reduce retry count to a single retry */
1/*
2 * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * Redistribution of source code must retain the above copyright

--- 258 unchanged lines hidden (view full) ---

267 *
268 * returns -1
269 */
270void ipmi_catch_sigint()
271{
272 if (ipmi_main_intf != NULL) {
273 printf("\nSIGN INT: Close Interface %s\n",ipmi_main_intf->desc);
274 /* reduce retry count to a single retry */
275 if (ipmi_main_intf->session) {
276 ipmi_main_intf->session->retry = 1;
277 }
275 ipmi_main_intf->ssn_params.retry = 1;
278 /* close interface */
279 ipmi_main_intf->close(ipmi_main_intf);
280 }
281 exit(-1);
282}
283
284/* ipmi_parse_hex - convert hexadecimal numbers to ascii string
285 * Input string must be composed of two-characer hexadecimal numbers.

--- 804 unchanged lines hidden ---
276 /* close interface */
277 ipmi_main_intf->close(ipmi_main_intf);
278 }
279 exit(-1);
280}
281
282/* ipmi_parse_hex - convert hexadecimal numbers to ascii string
283 * Input string must be composed of two-characer hexadecimal numbers.

--- 804 unchanged lines hidden ---