mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-27 12:03:45 +08:00
privsep: Don't log a BPF error that network is down
The master process will catch this clean remove the BPF process.
This commit is contained in:
parent
7c08f3777a
commit
e99249b608
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user