diff options
author | Not Zed <NotZed@Ximian.com> | 2004-10-06 19:44:23 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-10-06 19:44:23 +0800 |
commit | 5592affc5afac5d18448dbd7260cb0952d8a6309 (patch) | |
tree | 400f0e4554e6da29729a2225049a816670a7ada1 /camel | |
parent | 318dc1564b1c8fca154ecd281b2b1a82dfe8ae4e (diff) | |
download | gsoc2013-evolution-5592affc5afac5d18448dbd7260cb0952d8a6309.tar.gz gsoc2013-evolution-5592affc5afac5d18448dbd7260cb0952d8a6309.tar.zst gsoc2013-evolution-5592affc5afac5d18448dbd7260cb0952d8a6309.zip |
** See bug #67527.
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).
svn path=/trunk/; revision=27472
Diffstat (limited to 'camel')
-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); |