From 6f30fe6d0539e95ae337dca9f7a73798219aea66 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sat, 5 Sep 2020 19:37:50 +0800 Subject: [PATCH] compile: remove O_CLOEXEC flags --- src/dns_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns_cache.c b/src/dns_cache.c index c0abd12..c3c0066 100644 --- a/src/dns_cache.c +++ b/src/dns_cache.c @@ -656,7 +656,7 @@ int dns_cache_save(const char *file) uint32_t cache_number = 0; tlog(TLOG_DEBUG, "write cache file %s", file); - fd = open(file, O_TRUNC | O_CREAT | O_WRONLY | O_CLOEXEC, 0640); + fd = open(file, O_TRUNC | O_CREAT | O_WRONLY, 0640); if (fd < 0) { tlog(TLOG_ERROR, "create file %s failed, %s", file, strerror(errno)); goto errout;