From e1518ad665c59685678fe322f72ae7442c53e746 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 1 Dec 1999 10:31:49 +0000 Subject: [PATCH] another alarm (0) was missing. (However, this one didn't crash mutt.) --- imap/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imap/util.c b/imap/util.c index 3fc13db35..10db94606 100644 --- a/imap/util.c +++ b/imap/util.c @@ -342,13 +342,14 @@ int imap_wait_keepalive (pid_t pid) alarm (ImapCheckTimeout > 0 ? ImapCheckTimeout : 60); while (waitpid (pid, &rc, 0) < 0 && errno == EINTR) { + alarm (0); /* cancel a possibly pending alarm */ if (!option (OPTMSGERR)) mutt_buffy_check (0); alarm (ImapCheckTimeout > 0 ? ImapCheckTimeout : 60); } - alarm (0); /* cancel an possibly pending alarm */ + alarm (0); /* cancel a possibly pending alarm */ sigaction (SIGALRM, &oldalrm, NULL); sigprocmask (SIG_BLOCK, &oldblocked, NULL); -- 2.40.0