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

am: adf025b1ff

Change-Id: I843f125bda110c0be732f6ab0217b3ec972e1f70
This commit is contained in:
Nick Kralevich
2019-01-14 22:46:41 -08:00
committed by android-build-merger

View File

@@ -94,7 +94,7 @@ status_t CursorWindow::createFromParcel(Parcel* parcel, CursorWindow** outCursor
if (size < 0) {
result = UNKNOWN_ERROR;
} else {
int dupAshmemFd = ::dup(ashmemFd);
int dupAshmemFd = ::fcntl(ashmemFd, F_DUPFD_CLOEXEC, 0);
if (dupAshmemFd < 0) {
result = -errno;
} else {