* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
- switch (sig)
- {
- case SIGTSTP: /* user requested a suspend */
- if (!option (OPTSUSPEND))
- break;
- IsEndwin = isendwin ();
- curs_set (1);
- if (!IsEndwin)
- endwin ();
- kill (0, SIGSTOP);
-
- case SIGCONT:
- if (!IsEndwin)
- refresh ();
- mutt_curs_set (-1);
+ switch (sig) {
+ case SIGTSTP: /* user requested a suspend */
+ if (!option (OPTSUSPEND))
+ break;
+ IsEndwin = isendwin ();
+ curs_set (1);
+ if (!IsEndwin)
+ endwin ();
+ kill (0, SIGSTOP);
+
+ case SIGCONT:
+ if (!IsEndwin)
+ 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. */
- SigWinch = 1;
+ /* We don't receive SIGWINCH when suspended; however, no harm is done by
+ * just assuming we received one, and triggering the 'resize' anyway. */
+ SigWinch = 1;
sigemptyset (&Sigset);
sigaddset (&Sigset, SIGTERM);
sigaddset (&Sigset, SIGHUP);
sigemptyset (&Sigset);
sigaddset (&Sigset, SIGTERM);
sigaddset (&Sigset, SIGHUP);
sigprocmask (SIG_UNBLOCK, &Sigset, 0);
unset_option (OPTSIGNALSBLOCKED);
}
sigprocmask (SIG_UNBLOCK, &Sigset, 0);
unset_option (OPTSIGNALSBLOCKED);
}
sigaction (SIGQUIT, &SysOldQuit, NULL);
sigaction (SIGINT, &SysOldInt, NULL);
}
sigaction (SIGQUIT, &SysOldQuit, NULL);
sigaction (SIGINT, &SysOldInt, NULL);
}
memset (&sa, 0, sizeof sa);
sa.sa_handler = sighandler;
#ifdef SA_RESTART
memset (&sa, 0, sizeof sa);
sa.sa_handler = sighandler;
#ifdef SA_RESTART