From: Tilghman Lesher Date: Thu, 10 Dec 2009 18:56:23 +0000 (+0000) Subject: Missed a case that emits a WARNING where none is warranted. X-Git-Tag: 11.0.0-beta1~3740 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b510b53ebc089f7152a2fa310c6c9f8d5996fd06;p=thirdparty%2Fasterisk.git Missed a case that emits a WARNING where none is warranted. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@234210 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index e2f55806f9..cbe42f06be 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);