nameserv: set CLOEXEC flag on pipe file descriptors
This commit is contained in:
parent
0c9a19ded5
commit
1b1384ccaa
1 changed files with 3 additions and 0 deletions
|
@ -113,6 +113,9 @@ DNS_Name2IPAddressAsync(const char *name, DNS_NameResolveHandler handler, void *
|
|||
LOG_FATAL(LOGF_Nameserv, "pipe() failed");
|
||||
}
|
||||
|
||||
UTI_FdSetCloexec(inst->pipe[0]);
|
||||
UTI_FdSetCloexec(inst->pipe[1]);
|
||||
|
||||
resolving_threads++;
|
||||
assert(resolving_threads <= 1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue