summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/privsep-root.c')
-rw-r--r--src/privsep-root.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/privsep-root.c b/src/privsep-root.c
index cfdcbb2c..eb6087f5 100644
--- a/src/privsep-root.c
+++ b/src/privsep-root.c
@@ -788,7 +788,8 @@ ps_root_log(void *arg)
{
struct dhcpcd_ctx *ctx = arg;
- if (logreadfd(ctx->ps_log_fd) == -1)
+ /* OpenBSD reports connection reset when dhcpcd exits ... */
+ if (logreadfd(ctx->ps_log_fd) == -1 && errno != ECONNRESET)
logerr(__func__);
}