]> granicus.if.org Git - nethack/commitdiff
more SAFERHANGUP
authorcohrs <cohrs>
Fri, 19 Sep 2003 03:55:33 +0000 (03:55 +0000)
committercohrs <cohrs>
Fri, 19 Sep 2003 03:55:33 +0000 (03:55 +0000)
make "done_hup" volatile on platforms where this matters, since hangup()
now returns when it didn't used to.

include/decl.h

index 48b54c68d9d523aecba58ef632151111540a6239..178a9b1280089abedb565748127edfcbba6fe641 100644 (file)
@@ -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 */