From: Tilghman Lesher Date: Thu, 18 Mar 2010 15:45:26 +0000 (+0000) Subject: Just in case of a race, send the signal on interrupt. X-Git-Tag: 11.0.0-beta1~3267 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c0bf14d997b8811e7a1f9a4cbea6f4c9145507e;p=thirdparty%2Fasterisk.git 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 --- 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 */