am e6ef1977: am f95964c9: Merge "libc_logging: Set SOCK_CLOEXEC on socket"
* commit 'e6ef19779f35bfc1e49b50dd6d3189ab393328f1': libc_logging: Set SOCK_CLOEXEC on socket
This commit is contained in:
commit
80d877d6c3
@ -453,7 +453,7 @@ static int __libc_open_log_socket()
|
|||||||
// found that all logd crashes thus far have had no problem stuffing
|
// found that all logd crashes thus far have had no problem stuffing
|
||||||
// the UNIX domain socket and moving on so not critical *today*.
|
// the UNIX domain socket and moving on so not critical *today*.
|
||||||
|
|
||||||
int log_fd = TEMP_FAILURE_RETRY(socket(PF_UNIX, SOCK_DGRAM, 0));
|
int log_fd = TEMP_FAILURE_RETRY(socket(PF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0));
|
||||||
if (log_fd < 0) {
|
if (log_fd < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user