From: Theodore Tso Date: Wed, 1 Dec 1993 22:14:09 +0000 (+0000) Subject: If the select gets an EINTR error, retry with that host immediately, instead X-Git-Tag: krb5-1.0-beta3~123 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b50ce396e5dfcf7b4b8c169ca076485ac256466;p=krb5.git If the select gets an EINTR error, retry with that host immediately, instead of backing off through the exponential timeout. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3055 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/sendto_kdc.c b/src/lib/krb5/os/sendto_kdc.c index f8dc24cab..64b964292 100644 --- a/src/lib/krb5/os/sendto_kdc.c +++ b/src/lib/krb5/os/sendto_kdc.c @@ -132,6 +132,7 @@ OLDDECLARG(krb5_data *, reply) if (send(socklist[addr[host].sa_family], message->data, message->length, 0) != message->length) continue; + retry: waitlen.tv_usec = 0; waitlen.tv_sec = timeout; FD_ZERO(&readable); @@ -143,7 +144,7 @@ OLDDECLARG(krb5_data *, reply) &waitlen)) { if (nready == -1) { if (errno == EINTR) - continue; + goto retry; retval = errno; goto out; }