diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-03-18 15:45:26 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-03-18 15:45:26 +0000 |
commit | 0c0bf14d997b8811e7a1f9a4cbea6f4c9145507e (patch) | |
tree | 0cd28fe3452021588cc3dcf1fcd670f01f40b75a /main/stdtime | |
parent | 0c5fb8037c0b7576646e4e9e613b7272bb1a6979 (diff) |
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
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 */ |