Skip to content

Commit

Permalink
hangup() cleanup; SIGXCPU handling (trunk only)
Browse files Browse the repository at this point in the history
     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. ]
  • Loading branch information
nethack.rankin committed Jan 11, 2007
1 parent f2d8a53 commit 538b91d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/extern.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */


Expand Down Expand Up @@ -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 ### */

Expand Down

0 comments on commit 538b91d

Please sign in to comment.