mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
13 lines
342 B
Diff
13 lines
342 B
Diff
|
--- a/hotplug2.c
|
||
|
+++ b/hotplug2.c
|
||
|
@@ -300,6 +300,9 @@ int main(int argc, char *argv[]) {
|
||
|
worker_ctx = settings->worker->module->init(settings);
|
||
|
while (process) {
|
||
|
size = recv(settings->netlink_socket, &buffer, sizeof(buffer), 0);
|
||
|
+ if (size < 0)
|
||
|
+ continue;
|
||
|
+
|
||
|
uevent = uevent_deserialize(buffer, size);
|
||
|
|
||
|
if (uevent == NULL)
|