summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2021-01-28 12:13:24 +0000
committerRoy Marples <roy@marples.name>2021-01-28 12:13:24 +0000
commit44bbb1a68bcc2ee47eaa30aea2adefabe55b6807 (patch)
tree420f438c2a10014599d4ea77e735b2cae1f1e6b2 /src/privsep-root.c
parent11baa2a1f51c8da51883ab341f6e00e4f73c6998 (diff)
downloaddhcpcd-44bbb1a68bcc2ee47eaa30aea2adefabe55b6807.tar.xz
OpenBSD: Fix kqueue detection and one error.
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__);
}