From: cohrs Date: Mon, 27 Oct 2003 00:39:45 +0000 (+0000) Subject: crash on hangup X-Git-Tag: MOVE2GIT~1628 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1dae4245f590762f503f89cda3bd27eaffc80df2;p=nethack crash on hangup the message history saver needs the windows to stick around until save is completed. This usually the case, but end_of_input() was calling exit_nhwindows prematurely. This is actually an old bug (calling it early, but wasn't harmful until other recent changes). --- diff --git a/src/cmd.c b/src/cmd.c index 7146f406e..1af068e7f 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -2392,7 +2392,6 @@ static void end_of_input() { - exit_nhwindows("End of input?"); #ifndef NOSAVEONHANGUP # ifndef SAFERHANGUP if (!program_state.done_hup++)