| 104 | } |
| 105 | |
| 106 | void install_default_handler(int signum) |
| 107 | { |
| 108 | struct sigaction action {}; |
| 109 | sigemptyset(&action.sa_mask); |
| 110 | action.sa_handler = SIG_DFL; |
| 111 | (void)sigaction(signum, &action, nullptr); |
| 112 | } |
| 113 | |
| 114 | /* Note that this signal handler is not async signal safe ! |
| 115 | * Ideally a signal handler should only flip a bit and defer |
no test coverage detected