]> granicus.if.org Git - nethack/commitdiff
hangup() cleanup; SIGXCPU handling (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 11 Jan 2007 03:39:15 +0000 (03:39 +0000)
committernethack.rankin <nethack.rankin>
Thu, 11 Jan 2007 03:39:15 +0000 (03:39 +0000)
     While looking at a bug report from two months ago about how having
hangup take place while at the "destroy old game?" prompt causes an
interrupted game to become unrecoverable, I decided to try to clean up
convoluted hangup() a bit.  Didn't achieve much there, but did notice that
the Unix port was handling SIGXCPU (whatever that is...) inconsistently.
This attempts to fix that, but I have no way to test it.

     The original bug report is still unresolved.

     makedefs ought to add something for SAFERHANGUP and NOSAVEONHANGUP
to the #version output.

[ This is the missing bit from the patch on Monday which accidentally
  included all of extern.h as its log entry message. ]

include/extern.h

index f9749eeaa456827e01b53b703ae5d45ea2e32f02..48b8168630d533fe8edb3f263617805c5cef40d2 100644 (file)
@@ -2277,6 +2277,7 @@ E int FDECL(flash_hits_mon, (struct monst *,struct obj *));
 # ifdef PORT_HELP
 E void NDECL(port_help);
 # endif
+E void FDECL(sethanguphandler, (void (*)(int)));
 #endif /* UNIX */
 
 
@@ -2405,6 +2406,7 @@ E int FDECL(main, (int, char **));
 # ifdef CHDIR
 E void FDECL(chdirx, (const char *,BOOLEAN_P));
 # endif /* CHDIR */
+E void FDECL(sethanguphandler, (void (*)(int)));
 
 /* ### vmsmisc.c ### */