projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove support for antiquated ncurses libraries. Assume we have at least ncurses...
[apps/madmutt.git]
/
lib-sys
/
mutt_signal.c
diff --git
a/lib-sys/mutt_signal.c
b/lib-sys/mutt_signal.c
index
8609671
..
f8e0dba
100644
(file)
--- a/
lib-sys/mutt_signal.c
+++ b/
lib-sys/mutt_signal.c
@@
-51,18
+51,11
@@
static void sighandler (int sig)
if (!IsEndwin)
refresh ();
mutt_curs_set (-1);
if (!IsEndwin)
refresh ();
mutt_curs_set (-1);
-#if defined (HAVE_RESIZETERM)
/* We don't receive SIGWINCH when suspended; however, no harm is done by
* just assuming we received one, and triggering the 'resize' anyway. */
/* 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;
-#endif
- break;
-
-#if defined (HAVE_RESIZETERM)
case SIGWINCH:
SigWinch = 1;
break;
case SIGWINCH:
SigWinch = 1;
break;
-#endif
case SIGINT:
SigInt = 1;
case SIGINT:
SigInt = 1;
@@
-105,9
+98,7
@@
void mutt_signal_initialize (void)
sigaction (SIGCONT, &act, NULL);
sigaction (SIGTSTP, &act, NULL);
sigaction (SIGINT, &act, NULL);
sigaction (SIGCONT, &act, NULL);
sigaction (SIGTSTP, &act, NULL);
sigaction (SIGINT, &act, NULL);
-#if defined (HAVE_RESIZETERM)
sigaction (SIGWINCH, &act, NULL);
sigaction (SIGWINCH, &act, NULL);
-#endif
/* POSIX doesn't allow us to ignore SIGCHLD,
* so we just install a dummy handler for it
/* POSIX doesn't allow us to ignore SIGCHLD,
* so we just install a dummy handler for it
@@
-129,9
+120,7
@@
void mutt_block_signals (void)
sigaddset (&Sigset, SIGHUP);
sigaddset (&Sigset, SIGTSTP);
sigaddset (&Sigset, SIGINT);
sigaddset (&Sigset, SIGHUP);
sigaddset (&Sigset, SIGTSTP);
sigaddset (&Sigset, SIGINT);
-#if defined (HAVE_RESIZETERM)
sigaddset (&Sigset, SIGWINCH);
sigaddset (&Sigset, SIGWINCH);
-#endif
sigprocmask (SIG_BLOCK, &Sigset, 0);
set_option (OPTSIGNALSBLOCKED);
}
sigprocmask (SIG_BLOCK, &Sigset, 0);
set_option (OPTSIGNALSBLOCKED);
}