mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
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
This commit is contained in:
@@ -261,6 +261,9 @@ static void *inotify_daemon(void *data)
|
|||||||
} else if (res < 0) {
|
} else if (res < 0) {
|
||||||
if (errno == EINTR || errno == EAGAIN) {
|
if (errno == EINTR || errno == EAGAIN) {
|
||||||
/* If read fails, try again */
|
/* If read fails, try again */
|
||||||
|
AST_LIST_LOCK(&zonelist);
|
||||||
|
ast_cond_broadcast(&initialization);
|
||||||
|
AST_LIST_UNLOCK(&zonelist);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* Sanity check -- this should never happen, either */
|
/* Sanity check -- this should never happen, either */
|
||||||
|
|||||||
Reference in New Issue
Block a user