From b55284aa4d0e5b8fc8f7e41da4bc058f8a9e37a3 Mon Sep 17 00:00:00 2001 From: Barry Jaspan Date: Mon, 21 Oct 1996 17:46:58 +0000 Subject: [PATCH] * kcmd.c: don't retry (and waste 7 seconds) on ECONNREFUSED, just fail immediately [krb5-appl/120] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9217 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 5 +++++ src/appl/bsd/kcmd.c | 9 +-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 85ea415a0..4b6955645 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 21 13:44:53 1996 Barry Jaspan + + * kcmd.c: don't retry (and waste 7 seconds) on ECONNREFUSED, just + fail immediately [krb5-appl/120] + Fri Oct 18 17:26:51 1996 Barry Jaspan * krsh.c, krlogin.c: don't print our own error message if kcmd diff --git a/src/appl/bsd/kcmd.c b/src/appl/bsd/kcmd.c index c446541b7..877020c15 100644 --- a/src/appl/bsd/kcmd.c +++ b/src/appl/bsd/kcmd.c @@ -189,14 +189,7 @@ kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm, lport--; continue; } - /* - * don't wait very long for Kerberos kcmd. - */ - if (errno == ECONNREFUSED && timo <= 4) { - sleep(timo); - timo *= 2; - continue; - } + #if !(defined(tek) || defined(ultrix) || defined(sun) || defined(SYSV)) if (hp->h_addr_list[1] != NULL) { int oerrno = errno; -- 2.26.2