Merge "set O_CLOEXEC on /dev/ashmem"
This commit is contained in:
commit
be729702ae
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ static int __ashmem_open_locked()
|
||||||
int ret;
|
int ret;
|
||||||
struct stat st;
|
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) {
|
if (fd < 0) {
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue