MCPcopy Create free account
hub / github.com/SimHacker/micropolis / SignalExitHandler

Function SignalExitHandler

micropolis-activity/src/sim/sim.c:224–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222int triedToBailOnce = 0;
223
224void
225SignalExitHandler()
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
239signal_init()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected