From: Christophe CURIS <[email protected]>

The code includes a check whose goal is to avoid reloading more than once
the configuration, in case Inotify would report more than one change during
the event processing.

But the flag was not set so mechanism was ineffective, which is probably
ok anyway but as it is here let's make it work.

Signed-off-by: Christophe CURIS <[email protected]>
---
 src/event.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/event.c b/src/event.c
index 49b62e7..ac69102 100644
--- a/src/event.c
+++ b/src/event.c
@@ -340,6 +340,7 @@ static void handle_inotify_events(void)
                if ((pevent->mask & IN_MODIFY) && oneShotFlag == 0) {
                        wwarning(_("Inotify: Reading config files in defaults 
database."));
                        wDefaultsCheckDomains(NULL);
+                       oneShotFlag = 1;
                }
 
                /* move to next event in the buffer */
-- 
2.0.0


-- 
To unsubscribe, send mail to [email protected].

Reply via email to