summaryrefslogtreecommitdiffstats
path: root/libc/dns/gethnamaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/dns/gethnamaddr.c')
-rw-r--r--libc/dns/gethnamaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/dns/gethnamaddr.c b/libc/dns/gethnamaddr.c
index 1afad6d..6f30f75 100644
--- a/libc/dns/gethnamaddr.c
+++ b/libc/dns/gethnamaddr.c
@@ -539,7 +539,7 @@ static FILE* android_open_proxy()
const int one = 1;
struct sockaddr_un proxy_addr;
- sock = socket(AF_UNIX, SOCK_STREAM, 0);
+ sock = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
if (sock < 0) {
return NULL;
}