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

am: 9c5c779597

Change-Id: Id1011a8d5b004c62ddfad0ce1595ab07e671c204
This commit is contained in:
Nick Kralevich
2019-01-14 20:10:42 -08:00
committed by android-build-merger

View File

@@ -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;
}