aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-19 02:35:32 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-19 02:35:32 +0000
commit9c429358cf6723ae869e9578c89e6c74efdddd77 (patch)
tree8f07151424a3b523492a893a806376d2e7dc9a61 /fetchmail.c
parent624b6bec3377d25849725c867d63bf7d98a7aa48 (diff)
downloadfetchmail-9c429358cf6723ae869e9578c89e6c74efdddd77.tar.gz
fetchmail-9c429358cf6723ae869e9578c89e6c74efdddd77.tar.bz2
fetchmail-9c429358cf6723ae869e9578c89e6c74efdddd77.zip
George Sipe's monitor fixes.
svn path=/trunk/; revision=786
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/fetchmail.c b/fetchmail.c
index c60c77ae..0ae0fe4c 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -364,8 +364,8 @@ int main (int argc, char **argv)
if (ctl->active && !(implicitmode && ctl->server.skip))
{
#ifdef linux
- /* interface_check does its own error logging */
- if (!interface_check(&ctl->server))
+ /* interface_approve() does its own error logging */
+ if (!interface_approve(&ctl->server))
continue;
#endif /* linux */
@@ -409,6 +409,17 @@ int main (int argc, char **argv)
querystatus = query_host(ctl);
if (!check_only)
update_str_lists(ctl);
+#ifdef linux
+ if (ctl->server.monitor)
+ {
+ /* Allow some time for the link to quiesce. One
+ * second is usually sufficient, three is safe.
+ * Note: this delay is important - don't remove!
+ */
+ sleep(3);
+ interface_note_activity(&ctl->server);
+ }
+#endif
}
}
@@ -624,7 +635,7 @@ static int load_params(int argc, char **argv, int optind)
ctl->server.envelope = "X-Envelope-To:";
#ifdef linux
- /* interface_check does its own error logging */
+ /* interface_parse() does its own error logging */
interface_parse(&ctl->server);
#endif /* linux */