aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-27 16:47:21 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-27 16:47:21 +0100
commitce66ec2833143cc14eb6cffc6f16b736df9d1f31 (patch)
treef48ef5c733fbe0dfbdc10f41267e22990dce858f /vis-core.h
parent81e20069163d7c0780d759d904149e247f97db86 (diff)
downloadvis-ce66ec2833143cc14eb6cffc6f16b736df9d1f31.tar.gz
vis-ce66ec2833143cc14eb6cffc6f16b736df9d1f31.tar.xz
vis: cleanup signal handling code
Move all signal handling code out of "library" code into user application.
Diffstat (limited to 'vis-core.h')
-rw-r--r--vis-core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis-core.h b/vis-core.h
index 56c51bf..79270f6 100644
--- a/vis-core.h
+++ b/vis-core.h
@@ -178,6 +178,8 @@ struct Vis {
int exit_status; /* exit status when terminating main loop */
volatile sig_atomic_t cancel_filter; /* abort external command/filter (SIGINT occured) */
volatile sig_atomic_t sigbus; /* one of the memory mapped region became unavailable (SIGBUS) */
+ volatile sig_atomic_t need_resize; /* need to resize UI (SIGWINCH occured) */
+ volatile sig_atomic_t terminate; /* need to terminate we were being killed by SIGTERM */
sigjmp_buf sigbus_jmpbuf; /* used to jump back to a known good state in the mainloop after (SIGBUS) */
Map *actions; /* registered editor actions / special keys commands */
lua_State *lua; /* lua context used for syntax highligthing */