]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Missed a case that emits a WARNING where none is warranted.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 10 Dec 2009 18:56:23 +0000 (18:56 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 10 Dec 2009 18:56:23 +0000 (18:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@234210 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_musiconhold.c

index e2f55806f9cf0fbb1f1fe9cdd1e83f0926f039f4..cbe42f06be072ae5a35c4601b5a1afaa28327d8f 100644 (file)
@@ -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);