Merge "set O_CLOEXEC on /dev/ashmem" am: be729702ae

am: 7e772f8194

Change-Id: I6f96618cb56344a294d06be9f48c1586be3a1bbf
This commit is contained in:
Nick Kralevich 2017-10-09 23:06:13 +00:00 committed by android-build-merger
commit 141a3079cf

View file

@ -51,7 +51,7 @@ static int __ashmem_open_locked()
int ret;
struct stat st;
int fd = TEMP_FAILURE_RETRY(open(ASHMEM_DEVICE, O_RDWR));
int fd = TEMP_FAILURE_RETRY(open(ASHMEM_DEVICE, O_RDWR | O_CLOEXEC));
if (fd < 0) {
return fd;
}