aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-10 18:56:23 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-10 18:56:23 +0000
commit1e9f0fe10fa1fef811a5641b5bf54745b016851a (patch)
tree880e4a80b5f7cf7a04885eb7c438faf2afdf4135 /res/res_musiconhold.c
parent85b106c45c7106ccd852eafddedb50c9061fe457 (diff)
Missed a case that emits a WARNING where none is warranted.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@234210 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r--res/res_musiconhold.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index e2f55806f..cbe42f06b 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -644,6 +644,9 @@ static void *monmp3thread(void *data)
if (class->pid > 1) {
do {
if (killpg(class->pid, SIGHUP) < 0) {
+ if (errno == ESRCH) {
+ break;
+ }
ast_log(LOG_WARNING, "Unable to send a SIGHUP to MOH process?!!: %s\n", strerror(errno));
}
usleep(100000);