dect
/
asterisk
Archived
13
0
Fork 0

Fix res_musiconhold lock

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6831 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2005-10-19 03:51:25 +00:00
parent 4eb55953fc
commit a4d6ea67a7
1 changed files with 1 additions and 1 deletions

View File

@ -1066,7 +1066,7 @@ static void ast_moh_destroy(void)
pid = moh->pid;
moh->pid = 0;
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;
}
ast_log(LOG_DEBUG, "mpg123 pid %d and child died after %d bytes read\n", pid, tbytes);