]> granicus.if.org Git - neomutt/commitdiff
another alarm (0) was missing. (However, this one didn't crash mutt.)
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 1 Dec 1999 10:31:49 +0000 (10:31 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 1 Dec 1999 10:31:49 +0000 (10:31 +0000)
imap/util.c

index 3fc13db355b4b0276345d3c01388bf86137400e5..10db94606996ec77738600a50cbe143747648b95 100644 (file)
@@ -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);