summaryrefslogtreecommitdiff
path: root/quit.h
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2012-02-22 10:00:05 -0500
committerChet Ramey <chet.ramey@case.edu>2012-02-22 10:00:05 -0500
commit5a3187363b06b5365ec335ac530bb1f75fff172a (patch)
treea4384f144b8ea6847c0e54f50401a9635cb726b2 /quit.h
parentd00a2d66927ffec865bb63a39f7ad7fa98e0fe9b (diff)
downloadbash-5a3187363b06b5365ec335ac530bb1f75fff172a.tar.gz
commit bash-20120113 snapshot
Diffstat (limited to 'quit.h')
-rw-r--r--quit.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/quit.h b/quit.h
index e7bf05b6..9ef07412 100644
--- a/quit.h
+++ b/quit.h
@@ -1,6 +1,6 @@
/* quit.h -- How to handle SIGINT gracefully. */
-/* Copyright (C) 1993-2009 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2012 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -50,4 +50,7 @@ extern volatile int terminating_signal;
if (terminating_signal) termsig_handler (terminating_signal); \
} while (0)
+#define LASTSIG() \
+ (terminating_signal ? terminating_signal : (interrupt_state ? SIGINT : 0))
+
#endif /* _QUIT_H_ */