diff options
| author | Roy Marples <roy@marples.name> | 2020-09-06 13:27:31 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-09-06 13:27:31 +0100 |
| commit | 8f4e3268eae80ed4cd53520cb36c228f127d0fcd (patch) | |
| tree | 48c70ada77104ad818011a71b69bb384e991fdca /src/dhcpcd.c | |
| parent | 887a28b736970e3c79a243f77986545cd56d62b1 (diff) | |
| download | dhcpcd-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.c | 3 |
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; } |
