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

Commit 68de214d authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Merge "replace dup() with fcntl(F_DUPFD_CLOEXEC)" am: a6fc0b72 am: 7c68c0c9

am: 53c4f183

Change-Id: I028be6f4f7ba82c2ff7102a6fe301b97dcd51c02
parents 09203ca2 53c4f183
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -473,7 +473,7 @@ static jobject android_os_Parcel_readFileDescriptor(JNIEnv* env, jclass clazz, j
    if (parcel != NULL) {
        int fd = parcel->readFileDescriptor();
        if (fd < 0) return NULL;
        fd = dup(fd);
        fd = fcntl(fd, F_DUPFD_CLOEXEC, 0);
        if (fd < 0) return NULL;
        return jniCreateFileDescriptor(env, fd);
    }