]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: do not use pidref_hash_ops_free for Manager.watch_pids
authorMike Yuan <me@yhndnzj.com>
Sun, 6 Apr 2025 14:10:43 +0000 (16:10 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 7 Apr 2025 06:48:23 +0000 (15:48 +0900)
commitc06b8d96f4f93ee72a0969129af631add3e76df7
treece7e46df9c432aa65cf5f90449992fb5ec457b3b
parentead510fe06702752dfb67530ee75b479f02e0265
core: do not use pidref_hash_ops_free for Manager.watch_pids

The PidRefs are in all cases owned by Unit.pids, and gets removed
from Manager.watch_pids(_more) when the unit is destructed, via
unit_unwatch_pidref(). This hasn't caused any issue because
manager_clear_jobs_and_units() is called before destroying
Manager.watch_pids(_more), but let's get this right.
src/core/manager.h
src/core/unit.c