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

Commit 98546b23 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "sharedmem.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)"

parents 09a47331 39649708
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;
}