]> git.ipfire.org Git - thirdparty/cups.git/commit
scheduler/main.c: Set select timeout to JobHistoryUpdate again 187/head
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 12 May 2021 14:27:21 +0000 (16:27 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 12 May 2021 14:27:21 +0000 (16:27 +0200)
commit722b863894b47c48a39230b0248cd7bae5317bba
tree87784c57157071b90d493d89779a128f7c8ff242
parent0f1fc8032789c0443e3afc2dc5499652381b9003
scheduler/main.c: Set select timeout to JobHistoryUpdate again

The commit 9bdea94b145 introduced a regression in job control and data
files cleanup. If user sets PreserveJobHistory and PreserveJobFiles,
prints a file and stops cupsd before files are cleaned up, the files
aren't removed after cupsd restarts and the timeouts for removal are
reached.

The files will be removed if user uses command 'lpstat -W completed -o'
or by another cupsd restart after time passes JobHistoryUpdate, so
workarounds exist, however the current behavior is strange :( .
scheduler/main.c