Skip to content

Do not lock state file /dev/null#433

Merged
cgzones merged 1 commit intologrotate:masterfrom
cgzones:devnull
Jan 25, 2022
Merged

Do not lock state file /dev/null#433
cgzones merged 1 commit intologrotate:masterfrom
cgzones:devnull

Conversation

@cgzones
Copy link
Member

@cgzones cgzones commented Jan 17, 2022

#395 introduced /dev/null as supported state file path for cases when no state file is desired.

lockState() tries to open and lock the state file to avoid issues with concurrent instances, see #295.

Locking the character file /dev/null might either be not supported, e.g. on Debian GNU/Hurd (hurd-i386), nor not allowed, e.g. by SELinux.

logrotate#395 introduced /dev/null as supported state file path for cases when no
state file is desired.
lockState() tries to open and lock the state file to avoid issues with
concurrent instances, see logrotate#295.
Locking the character file /dev/null might either be not supported, e.g.
on Debian GNU/Hurd (hurd-i386), nor not allowed, e.g. by SELinux.
@cgzones cgzones merged commit c7078c2 into logrotate:master Jan 25, 2022
@cgzones cgzones deleted the devnull branch January 25, 2022 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants