/* quit.h -- How to handle SIGINT gracefully. */
-/* Copyright (C) 1993-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2021 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
if (interrupt_state) throw_to_top_level (); \
} while (0)
-#define CHECK_ALRM \
- do { \
- if (sigalrm_seen) \
- longjmp (alrmbuf, 1); \
- } while (0)
-
#define SETINTERRUPT interrupt_state = 1
#define CLRINTERRUPT interrupt_state = 0
#define ADDINTERRUPT interrupt_state++
#define DELINTERRUPT interrupt_state--
+#define ISINTERRUPT interrupt_state != 0
+
/* The same sort of thing, this time just for signals that would ordinarily
cause the shell to terminate. */
#define CHECK_WAIT_INTR \
do { \
- if (wait_signal_received && this_shell_builtin && (this_shell_builtin == wait_builtin)) \
- longjmp (wait_intr_buf, 1); \
+ if (wait_intr_flag && wait_signal_received && this_shell_builtin && (this_shell_builtin == wait_builtin)) \
+ sh_longjmp (wait_intr_buf, 1); \
} while (0)
#define RESET_SIGTERM \