X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-sys%2Fmutt_signal.c;h=0c535673d25e21d895bfc17baa3bce108298ee96;hb=11ebd35cdf53f877efb11ed1ce9ccb771d2a091c;hp=f8e0dbadac77de4bca560f5008327032191c90cd;hpb=c9b049f668148dab6ae90f32de6a4981f673bfa1;p=apps%2Fmadmutt.git diff --git a/lib-sys/mutt_signal.c b/lib-sys/mutt_signal.c index f8e0dba..0c53567 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))) @@ -39,8 +39,6 @@ static void sighandler (int sig) switch (sig) { case SIGTSTP: /* user requested a suspend */ - if (!option (OPTSUSPEND)) - break; IsEndwin = isendwin (); curs_set (1); if (!IsEndwin) @@ -49,7 +47,7 @@ static void sighandler (int sig) case SIGCONT: if (!IsEndwin) - refresh (); + 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 +58,6 @@ static void sighandler (int sig) case SIGINT: SigInt = 1; break; - } errno = save_errno; }