projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e603dce
)
Fix res_musiconhold lock
author
Mark Spencer
<markster@digium.com>
Wed, 19 Oct 2005 03:51:25 +0000
(
03:51
+0000)
committer
Mark Spencer
<markster@digium.com>
Wed, 19 Oct 2005 03:51:25 +0000
(
03:51
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6831
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
res/res_musiconhold.c
patch
|
blob
|
history
diff --git
a/res/res_musiconhold.c
b/res/res_musiconhold.c
index
71e9271
..
8d9c845
100755
(executable)
--- 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);