diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-10 20:56:58 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-10 20:56:58 +0200 |
commit | be5ee8686a50acf07b823bd293f9c765e533d213 (patch) | |
tree | fc5056db66c81eefa83a30afae305b9b027677d8 /src/globals.h | |
parent | 6ba24d87630b1ec2b8c7ff71550c9e41d143800e (diff) | |
download | vim-git-be5ee8686a50acf07b823bd293f9c765e533d213.tar.gz |
patch 8.2.0952: no simple way to interrupt Vimv8.2.0952
Problem: No simple way to interrupt Vim.
Solution: Add the SigUSR1 autocommand, triggered by SIGUSR1. (Jacob Hayes,
closes #1718)
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/globals.h b/src/globals.h index 27a8d6814..b8fd231df 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1171,9 +1171,14 @@ EXTERN int curscript INIT(= 0); // index in scriptin[] EXTERN FILE *scriptout INIT(= NULL); // stream to write script to EXTERN int read_cmd_fd INIT(= 0); // fd to read commands from -// volatile because it is used in signal handler catch_sigint(). -EXTERN volatile sig_atomic_t got_int INIT(= FALSE); // set to TRUE when interrupt - // signal occurred +// Set to TRUE when an interrupt signal occurred. +// Volatile because it is used in signal handler catch_sigint(). +EXTERN volatile sig_atomic_t got_int INIT(= FALSE); + +// Set to TRUE when SIGUSR1 signal was detected. +// Volatile because it is used in signal handler catch_sigint(). +EXTERN volatile sig_atomic_t got_sigusr1 INIT(= FALSE); + #ifdef USE_TERM_CONSOLE EXTERN int term_console INIT(= FALSE); // set to TRUE when console used #endif |