diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index b0bc5b3e0d..2df7d80e39 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);