]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Ignore signals in select, fix typo in last patch
authorMark Spencer <markster@digium.com>
Sat, 27 Dec 2003 23:46:19 +0000 (23:46 +0000)
committerMark Spencer <markster@digium.com>
Sat, 27 Dec 2003 23:46:19 +0000 (23:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1884 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_agi.c
channels/chan_modem.c

index 8ca56f42ac9007e30fc2fac47e80409f3e0c7a94..2dc6981d4c1cb0a0224c6872ebd2fef5f92f231a 100755 (executable)
@@ -169,7 +169,7 @@ static int launch_script(char *script, char *args, int *fds, int *efd, int *opid
        close(fromast[0]);
 
        // [PHM 12/18/03]
-       close(audio[0])
+       close(audio[0]);
 
        *opid = pid;
        return 0;
index 48571af3ef9e111b9d46859ab3543fe6bb01fbe6..09451decd2209fcca84f5872689f04df3b6d7e49 100755 (executable)
@@ -614,7 +614,8 @@ static void *do_monitor(void *data)
                pthread_testcancel();
                /* Okay, select has finished.  Let's see what happened.  */
                if (res < 1) {
-                       ast_log(LOG_WARNING, "select return %d: %s\n", res, strerror(errno));
+                       if ((errno != EINTR) && (errno != EAGAIN))
+                               ast_log(LOG_WARNING, "select return %d: %s\n", res, strerror(errno));
                        continue;
                }
                /* Alright, lock the interface list again, and let's look and see what has