aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-19 03:51:25 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-19 03:51:25 +0000
commita4d6ea67a7536e2cb2337527357ce6d3db8639f3 (patch)
treee234abbe3b9e7f323ecf744816ea902a85f4d915 /res
parent4eb55953fc16cb0106eb5c1876d9cd9827d499f8 (diff)
Fix res_musiconhold lock
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6831 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rwxr-xr-xres/res_musiconhold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 71e9271c6..8d9c845b8 100755
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -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);