changeset 5446:560e67bb9f6f draft

dhcpcd: stderr callback fd may the reset by peer When the process exits which is normal.
author Roy Marples <roy@marples.name>
date Sun, 06 Sep 2020 13:27:31 +0100
parents 2070a61faddd
children 66512375d759
files src/dhcpcd.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcpcd.c	Sun Sep 06 12:20:40 2020 +0100
+++ b/src/dhcpcd.c	Sun Sep 06 13:27:31 2020 +0100
@@ -1792,7 +1792,8 @@
 
 	len = read(ctx->stderr_fd, log, sizeof(log));
 	if (len == -1) {
-		logerr(__func__);
+		if (errno != ECONNRESET)
+			logerr(__func__);
 		return;
 	}