]> Pileus Git - ~andy/fetchmail/blobdiff - interface.c
Suppress monitor check after signal wakeup.
[~andy/fetchmail] / interface.c
index 7a485e78e1e74fce3626d8d107035935add4892a..7ba922f978ea745d38bf178ad307754d6660a86f 100644 (file)
@@ -434,7 +434,7 @@ void interface_note_activity(struct hostdata *hp)
 #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;
@@ -460,7 +460,7 @@ int interface_approve(struct hostdata *hp)
        }
 
        /* if not monitoring link, all done */
-       if (!hp->monitor)
+       if (!domonitor || !hp->monitor)
                return(TRUE);
 
 #ifdef ACTIVITY_DEBUG