mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 22:50:29 +00:00
path: stop watching path specs once we triggered the target unit
We start watching them again once we get a notification that triggered unit entered inactive or failed state. Fixes: #10503
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
e8c36cc596
commit
8fca6944c2
@@ -480,11 +480,9 @@ static void path_enter_running(Path *p) {
|
|||||||
|
|
||||||
p->inotify_triggered = false;
|
p->inotify_triggered = false;
|
||||||
|
|
||||||
r = path_watch(p);
|
|
||||||
if (r < 0)
|
|
||||||
goto fail;
|
|
||||||
|
|
||||||
path_set_state(p, PATH_RUNNING);
|
path_set_state(p, PATH_RUNNING);
|
||||||
|
path_unwatch(p);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
|||||||
Reference in New Issue
Block a user