| 222 | int triedToBailOnce = 0; |
| 223 | |
| 224 | void |
| 225 | SignalExitHandler() |
| 226 | { |
| 227 | if (triedToBailOnce) { |
| 228 | exit(-1); |
| 229 | } else { |
| 230 | triedToBailOnce = 1; |
| 231 | fprintf(stderr, "\nMicropolis has been terminated by a signal.\n"); |
| 232 | fprintf(stderr, "Pick a window -- you're leaving!\n\n"); |
| 233 | fflush(stderr); |
| 234 | sim_really_exit(-1); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | |
| 239 | signal_init() |
nothing calls this directly
no outgoing calls
no test coverage detected