Restores all signal handlers to their default values. */
| 2339 | |
| 2340 | /* Restores all signal handlers to their default values. */ |
| 2341 | static void kwsysProcessRestoreDefaultSignalHandlers(void) |
| 2342 | { |
| 2343 | struct sigaction act; |
| 2344 | memset(&act, 0, sizeof(struct sigaction)); |
| 2345 | act.sa_handler = SIG_DFL; |
| 2346 | #ifdef SIGHUP |
| 2347 | sigaction(SIGHUP, &act, 0); |
| 2348 | #endif |
| 2349 | #ifdef SIGINT |
| 2350 | sigaction(SIGINT, &act, 0); |
| 2351 | #endif |
| 2352 | #ifdef SIGQUIT |
| 2353 | sigaction(SIGQUIT, &act, 0); |
| 2354 | #endif |
| 2355 | #ifdef SIGILL |
| 2356 | sigaction(SIGILL, &act, 0); |
| 2357 | #endif |
| 2358 | #ifdef SIGTRAP |
| 2359 | sigaction(SIGTRAP, &act, 0); |
| 2360 | #endif |
| 2361 | #ifdef SIGABRT |
| 2362 | sigaction(SIGABRT, &act, 0); |
| 2363 | #endif |
| 2364 | #ifdef SIGIOT |
| 2365 | sigaction(SIGIOT, &act, 0); |
| 2366 | #endif |
| 2367 | #ifdef SIGBUS |
| 2368 | sigaction(SIGBUS, &act, 0); |
| 2369 | #endif |
| 2370 | #ifdef SIGFPE |
| 2371 | sigaction(SIGFPE, &act, 0); |
| 2372 | #endif |
| 2373 | #ifdef SIGUSR1 |
| 2374 | sigaction(SIGUSR1, &act, 0); |
| 2375 | #endif |
| 2376 | #ifdef SIGSEGV |
| 2377 | sigaction(SIGSEGV, &act, 0); |
| 2378 | #endif |
| 2379 | #ifdef SIGUSR2 |
| 2380 | sigaction(SIGUSR2, &act, 0); |
| 2381 | #endif |
| 2382 | #ifdef SIGPIPE |
| 2383 | sigaction(SIGPIPE, &act, 0); |
| 2384 | #endif |
| 2385 | #ifdef SIGALRM |
| 2386 | sigaction(SIGALRM, &act, 0); |
| 2387 | #endif |
| 2388 | #ifdef SIGTERM |
| 2389 | sigaction(SIGTERM, &act, 0); |
| 2390 | #endif |
| 2391 | #ifdef SIGSTKFLT |
| 2392 | sigaction(SIGSTKFLT, &act, 0); |
| 2393 | #endif |
| 2394 | #ifdef SIGCLD |
| 2395 | sigaction(SIGCLD, &act, 0); |
| 2396 | #endif |
| 2397 | #ifdef SIGCHLD |
| 2398 | sigaction(SIGCHLD, &act, 0); |
no test coverage detected
searching dependent graphs…