Skip to content
Snippets Groups Projects
Commit 6ae49b9c authored by Jeremy McNamara's avatar Jeremy McNamara
Browse files

Don't core on mpg123. Bug #671

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 548860bc
No related branches found
No related tags found
No related merge requests found
...@@ -586,7 +586,7 @@ static void ast_moh_destroy(void) ...@@ -586,7 +586,7 @@ static void ast_moh_destroy(void)
if (moh->pid) { if (moh->pid) {
ast_log(LOG_DEBUG, "killing %d!\n", moh->pid); ast_log(LOG_DEBUG, "killing %d!\n", moh->pid);
stime = time(NULL); stime = time(NULL);
kill(moh->pid, SIGABRT); kill(moh->pid, SIGKILL);
while ((bytes = read(moh->srcfd, buff, 8192)) && time(NULL) < stime + 5) { while ((bytes = read(moh->srcfd, buff, 8192)) && time(NULL) < stime + 5) {
tbytes = tbytes + bytes; tbytes = tbytes + bytes;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment