diff options
author | ume <ume@FreeBSD.org> | 2002-04-24 12:23:03 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2002-04-24 12:23:03 +0000 |
commit | 5efd20ae96b501cb753f221b24efda2ee70753dd (patch) | |
tree | 6af0a73b83456f708bfc3526468648782fdc91d5 /usr.sbin | |
parent | a82580a6689a39798258762bb18bad92ab2c8d3a (diff) | |
download | FreeBSD-src-5efd20ae96b501cb753f221b24efda2ee70753dd.zip FreeBSD-src-5efd20ae96b501cb753f221b24efda2ee70753dd.tar.gz |
handle ECONNABORTED.
Submitted by: morito@double-fault.net
Obtained from: KAME
MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/faithd/faithd.c | 4 |
1 files changed, 3 insertions, 1 deletions
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*/ } |