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

Commit ed734404 authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "Use O_CLOEXEC when opening input device."

parents dd3ba438 874c1e9a
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;