]> git.ipfire.org Git - thirdparty/systemd.git/commit
sleep: always write resume_offset if possible
authorMike Yuan <me@yhndnzj.com>
Tue, 18 Apr 2023 16:09:08 +0000 (00:09 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 23 Jun 2023 15:57:49 +0000 (23:57 +0800)
commit1923373a647c620b7aa68a3a21ccb2cfed09e3aa
treefdac0d02a1d3b795ba1bc455629aeabf15015dd1
parent191b891bf1b01c1041509b951d9d797ceacb181d
sleep: always write resume_offset if possible

There's no need to conditionalize this.
Setting resume_offset=0 doesn't harm, and can even help
by overriding potentially existing half-written settings.
src/shared/sleep-util.c
src/shared/sleep-util.h
src/sleep/sleep.c