Merge branch 'NetHack-3.6.2'

This commit is contained in:
nhmall
2019-02-27 08:20:38 -05:00
15 changed files with 246 additions and 112 deletions

View File

@@ -114,8 +114,9 @@ panictrace_handler(sig_unused)
int sig_unused UNUSED;
{
#define SIG_MSG "\nSignal received.\n"
int f2 = (int) write(2, SIG_MSG, sizeof SIG_MSG - 1);
int f2;
f2 = (int) write(2, SIG_MSG, sizeof SIG_MSG - 1);
nhUse(f2); /* what could we do if write to fd#2 (stderr) fails */
NH_abort(); /* ... and we're already in the process of quitting? */
}