diff options
author | Oliver Kiddle <opk@zsh.org> | 2024-09-14 19:14:40 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2024-09-14 19:14:40 +0200 |
commit | 79593399c4bfa3eefb7eaa379fdc922b9c14c0df (patch) | |
tree | 6a203b3cb977cd11f09e39c2f4902de46a9e6989 /Src/init.c | |
parent | 6b9704e2c4e4c8524137a9c15bf9b166a975f3eb (diff) | |
download | zsh-79593399c4bfa3eefb7eaa379fdc922b9c14c0df.tar.gz zsh-79593399c4bfa3eefb7eaa379fdc922b9c14c0df.tar.xz zsh-79593399c4bfa3eefb7eaa379fdc922b9c14c0df.zip |
53080: remove code for systems that only have the old pre-POSIX signal()
Diffstat (limited to 'Src/init.c')
-rw-r--r-- | Src/init.c | 12 |
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); |