MCPcopy Index your code
hub / github.com/NetHack/NetHack / done1

Function done1

src/end.c:67–86  ·  view source on GitHub ↗

called as signal() handler, so sent at least one arg */ ARGSUSED*/

Source from the content-addressed store, hash-verified

65/* called as signal() handler, so sent at least one arg */
66/*ARGSUSED*/
67void
68done1(int sig_unused UNUSED)
69{
70#ifndef NO_SIGNAL
71 (void) signal(SIGINT, SIG_IGN);
72#endif
73 iflags.debug_fuzzer = fuzzer_off;
74 if (flags.ignintr) {
75#ifndef NO_SIGNAL
76 (void) signal(SIGINT, (SIG_RET_TYPE) done1);
77#endif
78 clear_nhwindow(WIN_MESSAGE);
79 curs_on_u();
80 wait_synch();
81 if (gm.multi > 0)
82 nomul(0);
83 } else {
84 (void) done2();
85 }
86}
87
88/* "#quit" command or keyboard interrupt */
89int

Callers

nothing calls this directly

Calls 4

curs_on_uFunction · 0.85
wait_synchFunction · 0.85
nomulFunction · 0.85
done2Function · 0.85

Tested by

no test coverage detected