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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user