fix NO_SIGNAL

This commit is contained in:
Adam Powers
2020-10-19 13:21:07 -07:00
parent 5e5324c25b
commit 03e9eb6dd6
3 changed files with 6 additions and 5 deletions

View File

@@ -101,10 +101,10 @@ dosave0()
return 0;
fq_save = fqname(g.SAVEF, SAVEPREFIX, 1); /* level files take 0 */
#ifndef NO_SIGNAL
#if defined(UNIX) || defined(VMS)
sethanguphandler((void FDECL((*), (int) )) SIG_IGN);
#endif
#ifndef NO_SIGNAL
(void) signal(SIGINT, SIG_IGN);
#endif