diff options
Diffstat (limited to 'src/core/log.c')
-rw-r--r-- | src/core/log.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/log.c b/src/core/log.c index 92f90043..b6c6fba4 100644 --- a/src/core/log.c +++ b/src/core/log.c @@ -88,6 +88,7 @@ int log_start_logging(LOG_REC *log) log_file_create_mode); if (log->handle == -1) { signal_emit("log create failed", 1, log); + log->failed = TRUE; return FALSE; } #ifdef HAVE_FCNTL @@ -97,6 +98,7 @@ int log_start_logging(LOG_REC *log) close(log->handle); log->handle = -1; signal_emit("log locked", 1, log); + log->failed = TRUE; return FALSE; } #endif @@ -108,6 +110,7 @@ int log_start_logging(LOG_REC *log) "\n", log->last); signal_emit("log started", 1, log); + log->failed = FALSE; return TRUE; } |