diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-12-01 09:44:04 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-12-01 09:44:04 +0000 |
commit | d69216a206e3a10f7578e15251abac5962754636 (patch) | |
tree | 706834673c8c0646393c7611d50a836f0a1d0867 /imap | |
parent | 67753c3ac2005c41d8e3a28a79be7dfb97bdff36 (diff) |
imap_keepalive: cancel pending alarms. Otherwise, mutt will die
frequently.
Diffstat (limited to 'imap')
-rw-r--r-- | imap/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/imap/util.c b/imap/util.c index 4e98f46e..3fc13db3 100644 --- a/imap/util.c +++ b/imap/util.c @@ -342,14 +342,14 @@ int imap_wait_keepalive (pid_t pid) alarm (ImapCheckTimeout > 0 ? ImapCheckTimeout : 60); while (waitpid (pid, &rc, 0) < 0 && errno == EINTR) { - alarm (0); - if (!option (OPTMSGERR)) mutt_buffy_check (0); alarm (ImapCheckTimeout > 0 ? ImapCheckTimeout : 60); } + alarm (0); /* cancel an possibly pending alarm */ + sigaction (SIGALRM, &oldalrm, NULL); sigprocmask (SIG_BLOCK, &oldblocked, NULL); |