compile: remove O_CLOEXEC flags

This commit is contained in:
Nick Peng
2020-09-05 19:37:50 +08:00
parent 0b45da29c7
commit 6f30fe6d05

View File

@@ -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;