X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-sys%2Fmutt_signal.c;h=bdb857752d505a7995f970a77ecf3d697ae1104d;hp=8be8fcee3648d177b077e027aae733c5a2502822;hb=8b89861e79d1b2e8ddcc54ea4d89957d6d10ebe6;hpb=8e39affbf1cd8a2a5ff5c9991650d54fdcea4997 diff --git a/lib-sys/mutt_signal.c b/lib-sys/mutt_signal.c index 8be8fce..bdb8577 100644 --- a/lib-sys/mutt_signal.c +++ b/lib-sys/mutt_signal.c @@ -9,7 +9,7 @@ #include -#include +#include #include "mutt_signal.h" @@ -22,10 +22,10 @@ static int IsEndwin = 0; /* Attempt to catch "ordinary" signals and shut down gracefully. */ static void exit_handler (int sig) { - curs_set (1); - endwin (); /* just to be safe */ - printf(_("Caught %s... Exiting.\n"), strsignal(sig)); - exit (0); + curs_set(1); + endwin(); /* just to be safe */ + printf(_("Caught %s... Exiting.\n"), strsignal(sig)); + exit(0); } static void chld_handler(int sig __attribute__((unused))) @@ -49,7 +49,7 @@ static void sighandler (int sig) case SIGCONT: if (!IsEndwin) - wrefresh (stdscr); + refresh(); mutt_curs_set (-1); /* We don't receive SIGWINCH when suspended; however, no harm is done by * just assuming we received one, and triggering the 'resize' anyway. */ @@ -60,7 +60,6 @@ static void sighandler (int sig) case SIGINT: SigInt = 1; break; - } errno = save_errno; }