From 0c0bf14d997b8811e7a1f9a4cbea6f4c9145507e Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 18 Mar 2010 15:45:26 +0000 Subject: [PATCH] Just in case of a race, send the signal on interrupt. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@253255 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/stdtime/localtime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c index eb9a2b1c70..4440a55eff 100644 --- a/main/stdtime/localtime.c +++ b/main/stdtime/localtime.c @@ -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 */