Revise close on exec

This commit is contained in:
Mr-Dave
2022-04-16 13:51:41 -06:00
parent 58f60f8688
commit 7a809dd8b8
9 changed files with 44 additions and 63 deletions

View File

@@ -96,7 +96,7 @@ static void log_set_logfile(const char *logfile_name)
/* Setup temporary to let log if myfopen fails */
log_set_mode(LOGMODE_SYSLOG);
logfile = myfopen(logfile_name, "a");
logfile = myfopen(logfile_name, "ae");
/* If logfile was opened correctly */
if (logfile) {