aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 b0bc5b3e0..2df7d80e3 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -620,6 +620,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);