Skip to content

Commit

Permalink
Fix one more log lock bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Jan 26, 2024
1 parent de7fac7 commit 1a0e8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pappl/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ rotate_log(pappl_system_t *system) // I - System


// Re-check whether we need to rotate the log file...
if (!fstat(system->log_fd, &loginfo) && loginfo.st_size >= (off_t)papplSystemGetMaxLogSize(system))
if (!fstat(system->log_fd, &loginfo) && loginfo.st_size >= (off_t)system->log_max_size)
{
// Rename existing log file to "xxx.O"
char backname[1024]; // Backup log filename
Expand Down

0 comments on commit 1a0e8aa

Please sign in to comment.