diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-18 15:45:26 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-18 15:45:26 +0000 |
commit | 1b444e49e433a5b635709a72e1d230b5800b0a0b (patch) | |
tree | 0cd28fe3452021588cc3dcf1fcd670f01f40b75a /main/stdtime | |
parent | 12b485099c1877e946145a596d6a7dcacc4c57f8 (diff) |
Just in case of a race, send the signal on interrupt.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@253255 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/stdtime')
-rw-r--r-- | main/stdtime/localtime.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c index eb9a2b1c7..4440a55ef 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 */ |