From 5592affc5afac5d18448dbd7260cb0952d8a6309 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 6 Oct 2004 11:44:23 +0000 Subject: ** See bug #67527. 2004-10-05 Not Zed ** 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). svn path=/trunk/; revision=27472 --- camel/ChangeLog | 8 ++++++++ camel/camel-service.c | 8 ++------ 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'camel') 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 + + ** 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 * 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); -- cgit v1.2.3