]> git.ipfire.org Git - thirdparty/systemd.git/commit
scope: do not disable timer event source when state is SCOPE_RUNNING
authorNick Rosbrook <nick.rosbrook@canonical.com>
Tue, 4 Apr 2023 22:39:26 +0000 (18:39 -0400)
committerNick Rosbrook <nick.rosbrook@canonical.com>
Thu, 13 Apr 2023 18:34:41 +0000 (14:34 -0400)
commite1f85b49b09ed3e3717cf7776c9da7acc4e906c6
tree93efee084ac730865de1ed162014ea9a9b8f41df
parent0607a9f9da628deed420a811852d3b506a0efc2d
scope: do not disable timer event source when state is SCOPE_RUNNING

In scope_set_state(), the timer event source may be disabled depending
on the state. Currently, it will be disabled when the state is
SCOPE_RUNNING. This has the effect of new RuntimeMaxSec values being
ignored on coldplug.

Note that this issue is not currently present when scopes are started
because when scope_start() is called, scope_arm_timer() is called after
scope_set_state().
src/core/scope.c