]> granicus.if.org Git - nethack/commitdiff
crash on hangup
authorcohrs <cohrs>
Mon, 27 Oct 2003 00:39:45 +0000 (00:39 +0000)
committercohrs <cohrs>
Mon, 27 Oct 2003 00:39:45 +0000 (00:39 +0000)
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).

src/cmd.c

index 7146f406e2e2d24f57094803f911adbf486c8688..1af068e7fa5d94abfc547a5fc75c62e2538c1a59 100644 (file)
--- 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++)