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

Commit 9c5c7795 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

Change-Id: I39830b8b61e82fa395f39f45398176fc45c7febb
parents a41d30b5 98546b23
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;
}