Eliminate spurious select warning
authorMark Spencer <markster@digium.com>
Thu, 4 Mar 2004 21:32:32 +0000 (21:32 +0000)
committerMark Spencer <markster@digium.com>
Thu, 4 Mar 2004 21:32:32 +0000 (21:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2331 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c

index ac2b503..a267df9 100755 (executable)
@@ -257,7 +257,8 @@ static void *listener(void *unused)
                FD_SET(ast_socket, &fds);
                s = ast_select(ast_socket + 1, &fds, NULL, NULL, NULL);
                if (s < 0) {
                FD_SET(ast_socket, &fds);
                s = ast_select(ast_socket + 1, &fds, NULL, NULL, NULL);
                if (s < 0) {
-                       ast_log(LOG_WARNING, "Select returned error: %s\n", strerror(errno));
+                       if (errno != EINTR)
+                               ast_log(LOG_WARNING, "Select returned error: %s\n", strerror(errno));
                        continue;
                }
                len = sizeof(sun);
                        continue;
                }
                len = sizeof(sun);