Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d562ca78 authored by Andrew Boie's avatar Andrew Boie
Browse files

ueventd: Increase uevent buffer size



As it turns out, no, 64K is not enough. A device provisioning
tool was generating many uevents as it manipulated the GPT,
causing events near the end of the process (including events
as a result of the final BLKRRPART ioctl()) to get lost.

It's not clear what the best value for this should be, but
increasing to 256K fixed the problem in this case.

Change-Id: I4883b34e96c89e8a6fa581bc9cd121bb021b5694
Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 77eccafe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -881,8 +881,8 @@ void device_init(void)
        sehandle = selinux_android_file_context_handle();
    }

    /* is 64K enough? udev uses 16MB! */
    device_fd = uevent_open_socket(64*1024, true);
    /* is 256K enough? udev uses 16MB! */
    device_fd = uevent_open_socket(256*1024, true);
    if(device_fd < 0)
        return;