aboutsummaryrefslogtreecommitdiff
path: root/libbb/device_open.c
diff options
context:
space:
mode:
authorJan Klötzke <jan@kloetzke.net>2019-12-16 22:56:52 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-11-22 14:33:58 +0100
commitd560030548cb237f9ef09a82fd6f372836655306 (patch)
tree6a6ca861cc0e533a6a77617f9fbed039dab16d08 /libbb/device_open.c
parente3f4759019544673d654ad8a1ea256ed481fa5e3 (diff)
downloadbusybox-d560030548cb237f9ef09a82fd6f372836655306.tar.gz
mdev: re-initialize if uevent messages were lost
If the netlink read() failed with ENOBUFS we know that we have missed at least one message due to a socket receive buffer overrun. The only way how to recover is to drop the old socket, open a fresh one and make a cold-plug scan of the current system state. Signed-off-by: Jan Klötzke <jan@kloetzke.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/device_open.c')
0 files changed, 0 insertions, 0 deletions