From: cohrs Date: Fri, 19 Sep 2003 03:55:33 +0000 (+0000) Subject: more SAFERHANGUP X-Git-Tag: MOVE2GIT~1772 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d66bd647e622f650ffffb4b67c027ca00a6783b1;p=nethack more SAFERHANGUP make "done_hup" volatile on platforms where this matters, since hangup() now returns when it didn't used to. --- diff --git a/include/decl.h b/include/decl.h index 48b54c68d..178a9b128 100644 --- a/include/decl.h +++ b/include/decl.h @@ -145,7 +145,7 @@ E NEARDATA struct sinfo { int gameover; /* self explanatory? */ int stopprint; /* inhibit further end of game disclosure */ #if defined(UNIX) || defined(VMS) || defined (__EMX__) || defined(WIN32) - int done_hup; /* SIGHUP or moral equivalent received + volatile int done_hup; /* SIGHUP or moral equivalent received * -- no more screen output */ #endif int something_worth_saving; /* in case of panic */