diff options
author | Chet Ramey <chet.ramey@case.edu> | 2012-02-22 10:00:05 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2012-02-22 10:00:05 -0500 |
commit | 5a3187363b06b5365ec335ac530bb1f75fff172a (patch) | |
tree | a4384f144b8ea6847c0e54f50401a9635cb726b2 /quit.h | |
parent | d00a2d66927ffec865bb63a39f7ad7fa98e0fe9b (diff) | |
download | bash-5a3187363b06b5365ec335ac530bb1f75fff172a.tar.gz |
commit bash-20120113 snapshot
Diffstat (limited to 'quit.h')
-rw-r--r-- | quit.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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_ */ |