diff options
| author | C. McEnroe | 2021-06-21 13:31:05 -0400 | 
|---|---|---|
| committer | C. McEnroe | 2021-06-21 13:31:05 -0400 | 
| commit | 73181be1ca02a37f09cb2515619edf49ecc73c1c (patch) | |
| tree | 322ac1b043efba2e87e8382adfa656b7bbdba0e3 | |
| parent | 1a336de95cb424684ac4ae8b213bba8bc9342312 (diff) | |
Open log files with CLOEXEC
| -rw-r--r-- | log.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -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); | 
