summaryrefslogtreecommitdiff
path: root/quit.h
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2013-03-26 20:51:22 -0400
committerChet Ramey <chet.ramey@case.edu>2013-03-26 20:51:22 -0400
commitc7e43312f9b44c8aeb42b99152cc3e5dcac89a46 (patch)
tree449335a1e8d14a2c3e73fb247b818b72bef69b27 /quit.h
parent8eb22ee966b0276194bbda0d6c8b109f4636edd3 (diff)
downloadbash-c7e43312f9b44c8aeb42b99152cc3e5dcac89a46.tar.gz
commit bash-20130301 snapshot
Diffstat (limited to 'quit.h')
-rw-r--r--quit.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/quit.h b/quit.h
index 87d9b8c2..9129848a 100644
--- a/quit.h
+++ b/quit.h
@@ -21,9 +21,11 @@
#if !defined (_QUIT_H_)
#define _QUIT_H_
+#include "sig.h" /* for sig_atomic_t */
+
/* Non-zero means SIGINT has already ocurred. */
-extern volatile int interrupt_state;
-extern volatile int terminating_signal;
+extern volatile sig_atomic_t interrupt_state;
+extern volatile sig_atomic_t terminating_signal;
/* Macro to call a great deal. SIGINT just sets the interrupt_state variable.
When it is safe, put QUIT in the code, and the "interrupt" will take