Do not spam the logs with EAGAIN

This commit is contained in:
Heiko Schlittermann (HS12-RIPE) 2018-12-19 23:00:36 +01:00
parent 8ca0fbefc2
commit 3338e122cf

View File

@ -304,7 +304,8 @@ static void child_main (struct child_s *ptr)
* Make sure no error occurred... * Make sure no error occurred...
*/ */
if (connfd < 0) { if (connfd < 0) {
log_message (LOG_ERR, if (errno != EAGAIN) /* do not spam the logs */
log_message (LOG_ERR,
"Accept returned an error (%s) ... retrying.", "Accept returned an error (%s) ... retrying.",
strerror (errno)); strerror (errno));
continue; continue;