Make ctld to not exit on ECONNABORTED on accept().

That is not really an error for the main process.

MFC after:	1 week
Sponsored by:	iXsystems, Inc.
This commit is contained in:
Alexander Motin 2015-04-06 18:56:02 +00:00
parent 6723fdfe46
commit 83dd77c3c1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281163

View File

@ -2399,8 +2399,11 @@ main_loop(struct conf *conf, bool dont_fork)
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,