From cebb241a4463e063721f27279552718a35a07ac7 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 10 Dec 2009 18:57:59 +0000 Subject: [PATCH] Merged revisions 234210 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r234210 | tilghman | 2009-12-10 12:56:23 -0600 (Thu, 10 Dec 2009) | 2 lines Missed a case that emits a WARNING where none is warranted. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@234212 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 210e0643b8..c85cb52afb 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -617,6 +617,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); -- 2.47.2