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

Commit 911bffde authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Merge "sharedmem.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)" am: 98546b23 am: 9c5c7795

am: 3ce18850

Change-Id: If3ac8e9fd81d17e73304652aca52c7df1316113f
parents 44b2b5ac 3ce18850
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ int ASharedMemory_dupFromJava(JNIEnv* env, jobject javaSharedMemory) {
    }
    int fd = env->CallIntMethod(javaSharedMemory, sSharedMemory.getFd);
    if (fd != -1) {
        fd = dup(fd);
        fd = fcntl(fd, F_DUPFD_CLOEXEC, 0);
    }
    return fd;
}