diff options
Diffstat (limited to '')
-rw-r--r-- | src/log.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -84,7 +84,10 @@ void close_log_file (void) void truncate_log_file (void) { lseek (log_file_fd, 0, SEEK_SET); - ftruncate (log_file_fd, 0); + if (ftruncate (log_file_fd, 0) != 0) { + log_message (LOG_WARNING, + "Unable to truncate log file to zero length"); + } } /* |