From: Roy Marples Date: Wed, 9 Dec 2020 11:15:30 +0000 (+0000) Subject: privsep: Don't log a BPF error that network is down X-Git-Tag: v9.4.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e99249b6083c5f1b2f58c6b2a8fdee080d6998bd;p=thirdparty%2Fdhcpcd.git privsep: Don't log a BPF error that network is down The master process will catch this clean remove the BPF process. --- 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