diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-27 16:47:21 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-27 16:47:21 +0100 |
| commit | ce66ec2833143cc14eb6cffc6f16b736df9d1f31 (patch) | |
| tree | f48ef5c733fbe0dfbdc10f41267e22990dce858f /vis-core.h | |
| parent | 81e20069163d7c0780d759d904149e247f97db86 (diff) | |
| download | vis-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |
