From caef674e29106c14aae5e77d82e6c3ab052d3d3b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 31 Oct 2002 13:38:29 +0000 Subject: Sunil Shetye's minor fixes. svn path=/trunk/; revision=3762 --- driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index a0596ec0..ab441b74 100644 --- a/driver.c +++ b/driver.c @@ -1114,8 +1114,8 @@ const int maxfetch; /* maximum number of messages to fetch */ */ if (run.poll_interval && !ctl->wehavesentauthnote - && ((ctl->wehaveauthed && ++ctl->authfailcount == 10) - || ++ctl->authfailcount == 3) + && ((ctl->wehaveauthed && ++ctl->authfailcount >= 10) + || (!ctl->wehaveauthed && ++ctl->authfailcount >= 3)) && !open_warning_by_mail(ctl, (struct msgblk *)NULL)) { ctl->wehavesentauthnote = 1; @@ -1509,6 +1509,7 @@ closeUp: err = PS_SYNTAX; } + set_timeout(0); /* cancel any pending alarm */ signal(SIGALRM, alrmsave); signal(SIGPIPE, pipesave); return(err); -- cgit v1.2.3