aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-04-25 16:18:42 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-04-25 16:18:42 +0000
commiteee69ed12a7129303607fc3e338132a23f23b3f4 (patch)
treea47abe849d86982164923a459a0ee319b3143d36
parent4ae3f438b46b1e4b5be5f7d1d64a159f0a77753f (diff)
downloadfetchmail-eee69ed12a7129303607fc3e338132a23f23b3f4.tar.gz
fetchmail-eee69ed12a7129303607fc3e338132a23f23b3f4.tar.bz2
fetchmail-eee69ed12a7129303607fc3e338132a23f23b3f4.zip
Add useful comment.
svn path=/trunk/; revision=2451
-rw-r--r--driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 2e123934..6bcaf90c 100644
--- a/driver.c
+++ b/driver.c
@@ -2194,6 +2194,12 @@ const struct method *proto; /* protocol method table */
totalcount += expunge;
if (NUM_SPECIFIED(ctl->fetchlimit) && totalcount >= fetchlimit)
break;
+
+ /*
+ * Allow time for the server lock to release. if we don't
+ * do this, we'll often hit a locked-mailbox condition and fail.
+ */
+ sleep(3); /* to be _really_ safe, probably need sleep(5)! */
} while
(ok == PS_MAXFETCH);