Merge "CursorWindow.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)" am: adf025b1ff
am: de408b3cb4
Change-Id: I2efa1736d545230283bf4d5ffaca209638723945
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user