* Update for cs.po from Jiri Pavlovsky.
* Prevent spurious hostname matches in fetchmailconf.
* Ultrix 4.5 port patches from Simon Burge <simonb@thistledown.com.au>.
-* Add bug warnubng to FAQ about Lotus Domino.
+* Add bug warning to FAQ about Lotus Domino.
+* Suppress monitor check just after being woken by signal.
fetchmail-5.3.4 (Wed Mar 22 15:55:51 EST 2000), 18819 lines:
netrc_entry *netrc_list;
char *netrc_file, *tmpbuf;
pid_t pid;
+ int lastsig = 0;
#ifdef __FreeBSD__
dropprivs();
}
#if (defined(linux) && !INET6_ENABLE) || defined(__FreeBSD__)
- /* interface_approve() does its own error logging */
- if (!interface_approve(&ctl->server))
+ /*
+ * Don't do monitoring if we were woken by a signal.
+ * Note that interface_approve() does its own error logging.
+ */
+ if (!interface_approve(&ctl->server, !lastsig))
continue;
#endif /* (defined(linux) && !INET6_ENABLE) || defined(__FreeBSD__) */
*/
if (run.poll_interval)
{
- int lastsig;
-
/*
* Because passwords can expire, it may happen that *all*
* hosts are now out of the loop due to authfail
/*
* OK, now pause util it's time for the next poll cycle.
- * A TRUE return indicates we received a wakeup signal;
+ * A nonzero return indicates we received a wakeup signal;
* unwedge all servers in case the problem has been
* manually repaired.
*/
void interface_init(void);
void interface_parse(char *, struct hostdata *);
void interface_note_activity(struct hostdata *);
-int interface_approve(struct hostdata *);
+int interface_approve(struct hostdata *, flag domonitor);
/* xmalloc.c */
#if defined(HAVE_VOIDPOINTER)
#endif
}
-int interface_approve(struct hostdata *hp)
+int interface_approve(struct hostdata *hp, flag domonitor)
/* return TRUE if OK to poll, FALSE otherwise */
{
ifinfo_t ifinfo;
}
/* if not monitoring link, all done */
- if (!hp->monitor)
+ if (!domonitor || !hp->monitor)
return(TRUE);
#ifdef ACTIVITY_DEBUG