mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-07 10:31:16 +00:00
Fix res_musiconhold lock
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1066,7 +1066,7 @@ static void ast_moh_destroy(void)
|
|||||||
pid = moh->pid;
|
pid = moh->pid;
|
||||||
moh->pid = 0;
|
moh->pid = 0;
|
||||||
kill(pid, SIGKILL);
|
kill(pid, SIGKILL);
|
||||||
while ((ast_wait_for_input(moh->srcfd, 100) > -1) && (bytes = read(moh->srcfd, buff, 8192)) && time(NULL) < stime) {
|
while ((ast_wait_for_input(moh->srcfd, 100) > 0) && (bytes = read(moh->srcfd, buff, 8192)) && time(NULL) < stime) {
|
||||||
tbytes = tbytes + bytes;
|
tbytes = tbytes + bytes;
|
||||||
}
|
}
|
||||||
ast_log(LOG_DEBUG, "mpg123 pid %d and child died after %d bytes read\n", pid, tbytes);
|
ast_log(LOG_DEBUG, "mpg123 pid %d and child died after %d bytes read\n", pid, tbytes);
|
||||||
|
|||||||
Reference in New Issue
Block a user