summaryrefslogtreecommitdiffstats
path: root/src/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-09-06 13:27:31 +0100
committerRoy Marples <roy@marples.name>2020-09-06 13:27:31 +0100
commit8f4e3268eae80ed4cd53520cb36c228f127d0fcd (patch)
tree48c70ada77104ad818011a71b69bb384e991fdca /src/dhcpcd.c
parent887a28b736970e3c79a243f77986545cd56d62b1 (diff)
downloaddhcpcd-8f4e3268eae80ed4cd53520cb36c228f127d0fcd.tar.xz
dhcpcd: stderr callback fd may the reset by peer
When the process exits which is normal.
Diffstat (limited to 'src/dhcpcd.c')
-rw-r--r--src/dhcpcd.c3
1 files changed, 2 insertions, 1 deletions
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;
}