| 325 | static int main_return_code = 0; |
| 326 | |
| 327 | static void |
| 328 | sigterm_handler(int sig) |
| 329 | { |
| 330 | received_sigterm = sig; |
| 331 | received_nb_signals++; |
| 332 | term_exit_sigsafe(); |
| 333 | if(received_nb_signals > 3) { |
| 334 | write(2/*STDERR_FILENO*/, "Received > 3 system signals, hard exiting\n", |
| 335 | strlen("Received > 3 system signals, hard exiting\n")); |
| 336 | |
| 337 | exit(123); |
| 338 | } |
| 339 | } |
| 340 | |
| 341 | #if HAVE_SETCONSOLECTRLHANDLER |
| 342 | static BOOL WINAPI CtrlHandler(DWORD fdwCtrlType) |
no test coverage detected