Merge "set O_CLOEXEC on /dev/ashmem" am: be729702ae am: 7e772f8194
am: 141a3079cf
Change-Id: Id12e81a8ffee4e25d8aec93471da3ad90da7aeba
This commit is contained in:
commit
a289a97d76
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue