* reflect the status of that transaction.
*/
do {
+#ifdef linux
+ if (poll_interval && monitor)
+ sleep(3); /* allow some time for the link to quiesce */
+
+ interface_note_activity();
+#endif
+
if (poll_interval)
{
if (outlevel == O_VERBOSE)
* We'll just assume setitimer(2) is available since fetchmail
* has to have a BSDoid socket layer to work at all.
*/
-#ifdef linux
- do {
- interface_note_activity();
-#endif
{
struct itimerval ntimeout;
(void) error(0, 0, "awakened by SIGUSR1");
}
}
-#ifdef linux
- } while (!interface_approve());
-#endif
if (outlevel == O_VERBOSE)
{
}
}
+
+#ifdef linux
+ if (!interface_approve())
+ continue;
+#endif
+
#ifdef HAVE_RES_SEARCH
sethostent(TRUE); /* use TCP/IP for mailserver queries */
#endif /* HAVE_RES_SEARCH */
{
ifinfo_t ifinfo;
- sleep(3); /* allow some time for the link to quiesce */
-
/* get the current I/O stats for the monitored link */
if (monitor && get_ifinfo(monitor, &ifinfo))
monitor_io = ifinfo.rx_packets + ifinfo.tx_packets;