summaryrefslogtreecommitdiff
path: root/Src/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/Src/init.c b/Src/init.c
index 0aecb5db9..8c7776c7a 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -1386,6 +1386,8 @@ setupshin(char *runscript)
void
init_signals(void)
{
+ struct sigaction act;
+
sigtrapped = (int *) hcalloc(TRAPCOUNT * sizeof(int));
siglists = (Eprog *) hcalloc(TRAPCOUNT * sizeof(Eprog));
@@ -1399,14 +1401,8 @@ init_signals(void)
intr();
-#ifdef POSIX_SIGNALS
- {
- struct sigaction act;
- if (!sigaction(SIGQUIT, NULL, &act) &&
- act.sa_handler == SIG_IGN)
- sigtrapped[SIGQUIT] = ZSIG_IGNORED;
- }
-#endif
+ if (!sigaction(SIGQUIT, NULL, &act) && act.sa_handler == SIG_IGN)
+ sigtrapped[SIGQUIT] = ZSIG_IGNORED;
#ifndef QDEBUG
signal_ignore(SIGQUIT);