From 5efd20ae96b501cb753f221b24efda2ee70753dd Mon Sep 17 00:00:00 2001 From: ume Date: Wed, 24 Apr 2002 12:23:03 +0000 Subject: handle ECONNABORTED. Submitted by: morito@double-fault.net Obtained from: KAME MFC after: 3 days --- usr.sbin/faithd/faithd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/faithd/faithd.c') diff --git a/usr.sbin/faithd/faithd.c b/usr.sbin/faithd/faithd.c index 09fac11..856f24a 100644 --- a/usr.sbin/faithd/faithd.c +++ b/usr.sbin/faithd/faithd.c @@ -428,7 +428,9 @@ again: len = sizeof(srcaddr); s_src = accept(s_wld, (struct sockaddr *)&srcaddr, &len); - if (s_src == -1) { + if (s_src < 0) { + if (errno == ECONNABORTED) + goto again; exit_failure("socket: %s", strerror(errno)); /*NOTREACHED*/ } -- cgit v1.1