From: Roy Marples Date: Sun, 6 Sep 2020 12:27:31 +0000 (+0100) Subject: dhcpcd: stderr callback fd may the reset by peer X-Git-Tag: v9.2.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f4e3268eae80ed4cd53520cb36c228f127d0fcd;p=thirdparty%2Fdhcpcd.git dhcpcd: stderr callback fd may the reset by peer When the process exits which is normal. --- diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 861ff3bf..efbd672b 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -1792,7 +1792,8 @@ dhcpcd_stderr_cb(void *arg) len = read(ctx->stderr_fd, log, sizeof(log)); if (len == -1) { - logerr(__func__); + if (errno != ECONNRESET) + logerr(__func__); return; }