fix NO_SIGNAL
This commit is contained in:
@@ -630,10 +630,10 @@ clearlocks()
|
||||
#endif
|
||||
#ifndef NO_SIGNAL
|
||||
(void) signal(SIGINT, SIG_IGN);
|
||||
#endif
|
||||
#if defined(UNIX) || defined(VMS)
|
||||
sethanguphandler((void FDECL((*), (int) )) SIG_IGN);
|
||||
#endif
|
||||
#endif /* NO_SIGNAL */
|
||||
/* can't access maxledgerno() before dungeons are created -dlc */
|
||||
for (x = (g.n_dgns ? maxledgerno() : 0); x >= 0; x--)
|
||||
delete_levelfile(x); /* not all levels need be present */
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user