#3507: Mutt ignores SIGWINCH when built with --enable-imap
--------------------+-------------------------------------------------------
Reporter: vinc17 | Owner: mutt-dev
Type: defect | Status: new
Priority: minor | Milestone:
Component: mutt | Version:
Keywords: |
--------------------+-------------------------------------------------------
Comment(by me):
{{{
On Sat, Mar 12, 2011 at 12:34:33PM -0000, Mutt wrote:
This patch fixes the problem. mutt_getch() returns {-2,OP_NULL} for
both a timeout and a SIGWINCH, so the loop around imap_keepalive() needs
to be a bit smarter.
diff -r 8d0281f79b21 keymap.c
--- a/keymap.c Mon Mar 07 10:17:59 2011 -0600
+++ b/keymap.c Sat Mar 12 08:34:45 2011 -0800
@@ -435,8 +435,11 @@
timeout (ImapKeepalive * 1000);
tmp = mutt_getch ();
timeout (-1);
- if (tmp.ch != -2)
- /* something other than timeout */
+ /* If a timeout was not received, or the window was resized,
exit the
+ * loop now. Otherwise, continue to loop until reaching a total
of
+ * $timeout seconds.
+ */
+ if (tmp.ch != -2 || SigWinch)
goto gotkey;
i -= ImapKeepalive;
imap_keepalive ();
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3507#comment:>
Mutt <http://www.mutt.org/>
The Mutt mail user agent