Ticket #6899: 102-poll.patch

File 102-poll.patch, 718 bytes (added by br1@…, 6 years ago)

i think this can be fixed with this patch

  • src/dnsmasq.c

    old new  
    575575      if ((t.tv_sec = set_dns_listeners(now, &rset, &maxfd)) != 0) 
    576576        { 
    577577          t.tv_usec = 0; 
    578           tp = &t; 
    579578        } 
    580579 
    581580      /* Whilst polling for the dbus, or doing a tftp transfer, wake every quarter second */ 
     
    584583        { 
    585584          t.tv_sec = 0; 
    586585          t.tv_usec = 250000; 
    587           tp = &t; 
    588586        } 
    589587 
     588      /* by default use a timeout of 1 sec to regularly poll the resolv.conf files */ 
     589      if (!t.tv_sec && !t.tv_usec) 
     590        { 
     591          t.tv_sec = 1; 
     592          t.tv_usec = 0; 
     593        } 
     594      tp = &t; 
     595 
    590596#ifdef HAVE_DBUS 
    591597      set_dbus_listeners(&maxfd, &rset, &wset, &eset); 
    592598#endif