From 4e3a2fd80010f408a86bc9100c01a561822020b1 Mon Sep 17 00:00:00 2001 From: Ruslan Valovyi Date: Tue, 26 Oct 2021 14:12:37 +0300 Subject: [PATCH] fix for the issue https://github.com/GENIVI/dlt-daemon/issues/341 --- src/daemon/dlt-daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c index 55d59544f..96782472e 100644 --- a/src/daemon/dlt-daemon.c +++ b/src/daemon/dlt-daemon.c @@ -2060,6 +2060,8 @@ int dlt_daemon_process_client_connect(DltDaemon *daemon, cli_size = sizeof(cli); if ((in_sock = accept(receiver->fd, (struct sockaddr *)&cli, &cli_size)) < 0) { + if (errno == ECONNABORTED) // Caused by nmap -v -p 3490 -Pn + return 0; dlt_vlog(LOG_ERR, "accept() for socket %d failed: %s\n", receiver->fd, strerror(errno)); return -1; }