diff options
-rw-r--r-- | camel/ChangeLog | 8 | ||||
-rw-r--r-- | camel/camel-service.c | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 593d6330ae..2bd874c943 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,11 @@ +2004-10-05 Not Zed <NotZed@Ximian.com> + + ** See bug #67527. + + * camel-service.c (cs_getaddrinfo, cs_getnameinfo): don't loop on + EAI_AGAIN, it doesn't appear to mean the same as EAGAIN does with + system calls (i guess 'no shit sherlock' really). + 2004-10-04 JP Rosevear <jpr@novell.com> * providers/imap4/camel-imap4-provider.c: include camel-i18n.h diff --git a/camel/camel-service.c b/camel/camel-service.c index 3ec768efa7..ac427cab89 100644 --- a/camel/camel-service.c +++ b/camel/camel-service.c @@ -859,9 +859,7 @@ cs_getaddrinfo(void *data) { struct _addrinfo_msg *info = data; - do { - info->result = getaddrinfo(info->name, info->service, info->hints, info->res); - } while (info->result == EAI_AGAIN); + info->result = getaddrinfo(info->name, info->service, info->hints, info->res); if (info->cancelled) { g_free(info); @@ -992,9 +990,7 @@ cs_getnameinfo(void *data) struct _addrinfo_msg *msg = data; /* there doens't appear to be a return code which says host or serv buffers are too short, lengthen them */ - do { - msg->result = getnameinfo(msg->addr, msg->addrlen, msg->host, msg->hostlen, msg->serv, msg->servlen, msg->flags); - } while (msg->result == EAI_AGAIN); + msg->result = getnameinfo(msg->addr, msg->addrlen, msg->host, msg->hostlen, msg->serv, msg->servlen, msg->flags); if (msg->cancelled) cs_freeinfo(msg); |