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:
parent
c22e78cc6e
commit
095e851b00
@ -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);
|
||||
|
4
H/Heap.h
4
H/Heap.h
@ -10,7 +10,7 @@
|
||||
* File: Heap.h *
|
||||
* mods: *
|
||||
* comments: Heap Init Structure *
|
||||
* version: $Id: Heap.h,v 1.19 2002-01-11 15:54:17 stasinos Exp $ *
|
||||
* version: $Id: Heap.h,v 1.20 2002-01-14 22:25:17 vsc Exp $ *
|
||||
*************************************************************************/
|
||||
|
||||
/* information that can be stored in Code Space */
|
||||
@ -388,7 +388,7 @@ typedef struct various_codes {
|
||||
#define AtomRead heap_regs->atom_read
|
||||
#define AtomRepeat heap_regs->atom_repeat
|
||||
#define AtomRestoreRegs heap_regs->atom_restore_regs
|
||||
#if USE_SIGACTION
|
||||
#if HAVE_SIGACTION
|
||||
#define AtomSigPending heap_regs->atom_sig_pending
|
||||
#endif
|
||||
#define AtomStackFree heap_regs->atom_stack_free
|
||||
|
Reference in New Issue
Block a user