From 66d912b92f9dd3399214faa151e42cf75090dba3 Mon Sep 17 00:00:00 2001 From: mav Date: Mon, 13 Apr 2015 09:18:56 +0000 Subject: MFC r281163: Make ctld to not exit on ECONNABORTED on accept(). That is not really an error for the main process. --- usr.sbin/ctld/ctld.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c index e58018d..24a1d41 100644 --- a/usr.sbin/ctld/ctld.c +++ b/usr.sbin/ctld/ctld.c @@ -2382,8 +2382,11 @@ found: client_fd = accept(portal->p_socket, (struct sockaddr *)&client_sa, &client_salen); - if (client_fd < 0) + if (client_fd < 0) { + if (errno == ECONNABORTED) + continue; log_err(1, "accept"); + } assert(client_salen >= client_sa.ss_len); handle_connection(portal, client_fd, -- cgit v1.1