From ce66ec2833143cc14eb6cffc6f16b736df9d1f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 27 Nov 2016 16:47:21 +0100 Subject: vis: cleanup signal handling code Move all signal handling code out of "library" code into user application. --- vis-core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vis-core.h') 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 */ -- cgit v1.2.3