Just in case of a race, send the signal on interrupt.
[asterisk/asterisk.git] / main / stdtime / localtime.c
index eb9a2b1..4440a55 100644 (file)
@@ -261,6 +261,9 @@ static void *inotify_daemon(void *data)
                } else if (res < 0) {
                        if (errno == EINTR || errno == EAGAIN) {
                                /* If read fails, try again */
+                               AST_LIST_LOCK(&zonelist);
+                               ast_cond_broadcast(&initialization);
+                               AST_LIST_UNLOCK(&zonelist);
                                continue;
                        }
                        /* Sanity check -- this should never happen, either */