diff options
| author | Roy Marples <roy@marples.name> | 2020-12-09 11:15:30 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-12-09 11:15:30 +0000 |
| commit | e99249b6083c5f1b2f58c6b2a8fdee080d6998bd (patch) | |
| tree | 7f6edfac359d92c318bef782c06640ff8d3ec975 | |
| parent | 7c08f3777a69c69e87a149bb35681ce2ed2f0490 (diff) | |
| download | dhcpcd-e99249b6083c5f1b2f58c6b2a8fdee080d6998bd.tar.xz | |
privsep: Don't log a BPF error that network is down
The master process will catch this clean remove the BPF process.
| -rw-r--r-- | src/privsep-bpf.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
