fix HAVE_SIGACTION

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@292 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2002-01-14 22:25:17 +00:00
parent c22e78cc6e
commit 095e851b00
2 changed files with 4 additions and 2 deletions

View File

@@ -1279,6 +1279,7 @@ ReceiveSignal (int s)
case SIGKILL:
exit_yap (SIGKILL, "\n\n\n[ Quit signal received ]\n\n");
#endif
#if HAVE_SIGACTION
case SIGUSR1:
/* force the system to creep */
p_creep ();
@@ -1300,6 +1301,7 @@ ReceiveSignal (int s)
/* NOTE: shouldn't this be a queue? */
PutValue(AtomSigPending, MkAtomTerm(LookupAtom("sig_hup")));
break;
#endif
default:
YP_fprintf(YP_stderr, "\n[ Unexpected signal ]\n");
exit (EXIT_FAILURE);