From e99249b6083c5f1b2f58c6b2a8fdee080d6998bd Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 9 Dec 2020 11:15:30 +0000 Subject: [PATCH] privsep: Don't log a BPF error that network is down The master process will catch this clean remove the BPF process. --- src/privsep-bpf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/privsep-bpf.c b/src/privsep-bpf.c index 23da9a07..79c4696d 100644 --- a/src/privsep-bpf.c +++ b/src/privsep-bpf.c @@ -73,7 +73,8 @@ ps_bpf_recvbpf(void *arg) if (len == -1) { int error = errno; - logerr("%s: %s", psp->psp_ifname, __func__); + if (errno != ENETDOWN) + logerr("%s: %s", psp->psp_ifname, __func__); if (error != ENXIO) break; /* If the interface has departed, close the BPF -- 2.47.2