summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/faithd/faithd.c4
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*/
}
OpenPOWER on IntegriCloud