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:
|
case SIGKILL:
|
||||||
exit_yap (SIGKILL, "\n\n\n[ Quit signal received ]\n\n");
|
exit_yap (SIGKILL, "\n\n\n[ Quit signal received ]\n\n");
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_SIGACTION
|
||||||
case SIGUSR1:
|
case SIGUSR1:
|
||||||
/* force the system to creep */
|
/* force the system to creep */
|
||||||
p_creep ();
|
p_creep ();
|
||||||
@ -1300,6 +1301,7 @@ ReceiveSignal (int s)
|
|||||||
/* NOTE: shouldn't this be a queue? */
|
/* NOTE: shouldn't this be a queue? */
|
||||||
PutValue(AtomSigPending, MkAtomTerm(LookupAtom("sig_hup")));
|
PutValue(AtomSigPending, MkAtomTerm(LookupAtom("sig_hup")));
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
YP_fprintf(YP_stderr, "\n[ Unexpected signal ]\n");
|
YP_fprintf(YP_stderr, "\n[ Unexpected signal ]\n");
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
|
4
H/Heap.h
4
H/Heap.h
@ -10,7 +10,7 @@
|
|||||||
* File: Heap.h *
|
* File: Heap.h *
|
||||||
* mods: *
|
* mods: *
|
||||||
* comments: Heap Init Structure *
|
* 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 */
|
/* information that can be stored in Code Space */
|
||||||
@ -388,7 +388,7 @@ typedef struct various_codes {
|
|||||||
#define AtomRead heap_regs->atom_read
|
#define AtomRead heap_regs->atom_read
|
||||||
#define AtomRepeat heap_regs->atom_repeat
|
#define AtomRepeat heap_regs->atom_repeat
|
||||||
#define AtomRestoreRegs heap_regs->atom_restore_regs
|
#define AtomRestoreRegs heap_regs->atom_restore_regs
|
||||||
#if USE_SIGACTION
|
#if HAVE_SIGACTION
|
||||||
#define AtomSigPending heap_regs->atom_sig_pending
|
#define AtomSigPending heap_regs->atom_sig_pending
|
||||||
#endif
|
#endif
|
||||||
#define AtomStackFree heap_regs->atom_stack_free
|
#define AtomStackFree heap_regs->atom_stack_free
|
||||||
|
Reference in New Issue
Block a user