* commit '039b9cef807b278a49815bcfe10389fe6efa5c82': logd_write: set SOCK_CLOEXEC on socket
This commit is contained in:
commit
e73fc3ab65
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ static int __write_to_log_initialize()
|
|||
close(i);
|
||||
}
|
||||
|
||||
i = socket(PF_UNIX, SOCK_DGRAM, 0);
|
||||
i = socket(PF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0);
|
||||
if (i < 0) {
|
||||
ret = -errno;
|
||||
write_to_log = __write_to_log_null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue