diff options
Diffstat (limited to 'src/sigs.c')
-rw-r--r-- | src/sigs.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -86,6 +86,10 @@ static void generic_hdlr(int sig) } exit(EXIT_SUCCESS); break; + case SIGUSR1: + want_reload = 1; + ungetch(KEY_RESIZE); + break; } } @@ -112,6 +116,7 @@ void sigs_init() if (!sigs_set_hdlr(SIGCHLD, generic_hdlr) || !sigs_set_hdlr(SIGWINCH, generic_hdlr) || !sigs_set_hdlr(SIGTERM, generic_hdlr) + || !sigs_set_hdlr(SIGUSR1, generic_hdlr) || !sigs_set_hdlr(SIGINT, SIG_IGN)) exit_calcurse(1); } |