Skip to content

Commit

Permalink
Don't hang on SIGHUP in the arena.
Browse files Browse the repository at this point in the history
Make ui::delay() treat seen_hups in the same way as an ESCAPE key
rather than simply returning. This is only called by the arena code,
and it doesn't check seen_hups itself.
  • Loading branch information
Aliscans committed Feb 2, 2025
1 parent 6b1dbc9 commit 25dad36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crawl-ref/source/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3394,6 +3394,11 @@ void delay(unsigned int ms)
pump_events();
}
#endif
if (crawl_state.seen_hups)
{
macro_buf_add(CK_ESCAPE, true); // Let the caller respond to seen_hups.
pump_events();
}
}

/**
Expand Down

0 comments on commit 25dad36

Please sign in to comment.