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

Commit 3ce18850 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

Change-Id: Id1011a8d5b004c62ddfad0ce1595ab07e671c204
parents 3802c87d 9c5c7795
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;
}