commit a14f36cd14770c0cc789737a0b0fa39ca411c9e1
parent 7cdc7259c1b514197fee5a0d973f95fdf3347677
Author: tgoodwin <tgoodwin>
Date: Tue, 17 Feb 1998 13:59:07 +0000
only define slowbuf etc. if needed
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/signal.c b/signal.c
@@ -2,12 +2,16 @@
#include <signal.h>
#include <setjmp.h>
+
#include "rc.h"
#include "sigmsgs.h"
#include "jbwrap.h"
+#if HAVE_RESTARTABLE_SYSCALLS
Jbwrap slowbuf;
volatile SIG_ATOMIC_T slow, interrupt_happened;
+#endif
+
void (*sighandlers[NUMOFSIGNALS])(int);
static volatile SIG_ATOMIC_T sigcount, caught[NUMOFSIGNALS];
@@ -18,11 +22,13 @@ extern void catcher(int s) {
caught[s] = 1;
}
signal(s, catcher);
- interrupt_happened = TRUE;
+
#if HAVE_RESTARTABLE_SYSCALLS
+ interrupt_happened = TRUE;
if (slow)
siglongjmp(slowbuf.j, 1);
#endif
+
}
extern void sigchk() {