aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-09-23 12:21:54 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-09-23 12:21:54 +0000
commit33d9765dd84fd3846b833202aa495c7725e88662 (patch)
tree3f8c10c3461c895d958ff6840cc8d0ec07ccbedb
parent82e7d2eb2feb04beeedf080c907711a5a350d0ff (diff)
downloadfetchmail-33d9765dd84fd3846b833202aa495c7725e88662.tar.gz
fetchmail-33d9765dd84fd3846b833202aa495c7725e88662.tar.bz2
fetchmail-33d9765dd84fd3846b833202aa495c7725e88662.zip
Plugin time-in patch.
svn path=/trunk/; revision=2585
-rw-r--r--NEWS1
-rw-r--r--driver.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9f138cbb..4b45d719 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ fetchmail-5.1.1 ():
* Consistently show dummy arguments on manual page.
* Fix lexer to permit `antispam -1'.
* Added fetchmailconf and FAQ warnings about Novell GroupWise.
+* John Cigas's delay patch to avoid a timing problem with plugins.
There are 266 people on fetchmail-friends and 444 on fetchmail-announce.
diff --git a/driver.c b/driver.c
index 234e4a4b..bbcaa768 100644
--- a/driver.c
+++ b/driver.c
@@ -1544,6 +1544,10 @@ const int maxfetch; /* maximum number of messages to fetch */
port = ctl->server.port ? ctl->server.port : protocol->port;
#endif /* !INET6 */
realhost = ctl->server.via ? ctl->server.via : ctl->server.pollname;
+
+ /* allow time for the port to be set up if we have a plugin */
+ if (ctl->server.plugin)
+ (void)sleep(1);
#if INET6
if ((mailserver_socket = SockOpen(realhost,
ctl->server.service ? ctl->server.service : protocol->service,