All pastes #60477 Raw Edit

Miscellany

public text v1 · immutable
#60477 ·published 2006-06-01 01:53 UTC
rendered paste body
Index: res/res_agi.c
===================================================================
--- res/res_agi.c       (revision 31175)
+++ res/res_agi.c       (working copy)
@@ -193,7 +193,7 @@
        pfds[0].fd = s;
        pfds[0].events = POLLOUT;
        while (poll(pfds, 1, MAX_AGI_CONNECT) != 1) {
-               if (errno != EINTR) {
+               if (errno != EINTR && errno != EINPROGRESS) {
                        ast_log(LOG_WARNING, "Connect to '%s' failed: %s\n", agiurl, strerror(errno));
                        close(s);
                        return