From 538b91ddc9def26d2cf2635774dd8904cb995682 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Thu, 11 Jan 2007 03:39:15 +0000 Subject: [PATCH] hangup() cleanup; SIGXCPU handling (trunk only) 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/extern.h b/include/extern.h index f9749eeaa..48b816863 100644 --- a/include/extern.h +++ b/include/extern.h @@ -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 ### */