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

Commit 874c1e9a authored by Jeff Brown's avatar Jeff Brown
Browse files

Use O_CLOEXEC when opening input device.

Change-Id: I931614ef4fe2143c9e124c3239d74a4a2ce3816c
parent e22afbed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -831,7 +831,7 @@ status_t EventHub::openDeviceLocked(const char *devicePath) {

    ALOGV("Opening device: %s", devicePath);

    int fd = open(devicePath, O_RDWR);
    int fd = open(devicePath, O_RDWR | O_CLOEXEC);
    if(fd < 0) {
        ALOGE("could not open %s, %s\n", devicePath, strerror(errno));
        return -1;