]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: path: Re-enter waiting if target is deactivating 30490/head
authorAdrian Vovk <adrianvovk@gmail.com>
Sat, 30 Dec 2023 19:06:39 +0000 (14:06 -0500)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 21 Jan 2024 10:34:45 +0000 (10:34 +0000)
commit720c618397397f958caeb050a1528eb0d6f7a4a6
treeb4169648fccb85a72da30a5ffcb4caafdbdd3e94
parent1c62c4fe0b54fb419b875cb2bae82a261518a745
core: path: Re-enter waiting if target is deactivating

Previously, path units would remain in the running state while their
target unit is deactivating. This left a window of time where the target
unit is no longer operational (i.e. it is busy deactivating/cleaning
up/etc) but the path unit would continue to ignore inotify events. In
short: any inotify event that occurs while the target unit deactivates
would be completely lost.

With this commit, the path will go back into a waiting state when the
target unit starts deactivating. This means that any inotify event that
occurs while the target unit deactivates will queue a start job.
src/core/path.c
test/testsuite-63.units/test63-pr-30768.path [new file with mode: 0644]
test/testsuite-63.units/test63-pr-30768.service [new file with mode: 0644]
test/units/testsuite-63.sh