Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-integ / recipes-support / dnsmasq / dnsmasq / stx / dnsmasq-2.76-inotify.patch
1 diff --git a/src/dnsmasq.c b/src/dnsmasq.c
2 index e1d3bbd..99e5437 100644
3 --- a/src/dnsmasq.c
4 +++ b/src/dnsmasq.c
5 @@ -358,7 +358,8 @@ int main (int argc, char **argv)
6      }
7  
8  #ifdef HAVE_INOTIFY
9 -  if (daemon->port != 0 || daemon->dhcp || daemon->doing_dhcp6)
10 +  if ((daemon->port != 0 || daemon->dhcp || daemon->doing_dhcp6)
11 +      && (!option_bool(OPT_NO_RESOLV) || daemon->dynamic_dirs))
12      inotify_dnsmasq_init();
13    else
14      daemon->inotifyfd = -1;