From 73181be1ca02a37f09cb2515619edf49ecc73c1c Mon Sep 17 00:00:00 2001
From: "C. McEnroe" <june@causal.agency>
Date: Mon, 21 Jun 2021 13:31:05 -0400
Subject: Open log files with CLOEXEC

---
 log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/log.c b/log.c
index 11edb52..2efb2e4 100644
--- a/log.c
+++ b/log.c
@@ -82,7 +82,7 @@ static FILE *logFile(uint id, const struct tm *tm) {
 	dataMkdir(path);
 
 	strftime(&path[len], sizeof(path) - len, "/%F.log", tm);
-	logs[id].file = dataOpen(path, "a");
+	logs[id].file = dataOpen(path, "ae");
 	if (!logs[id].file) exit(EX_CANTCREAT);
 
 	setlinebuf(logs[id].file);
-- 
cgit 1.4.1