mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +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:
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:
|
||||||
|
|
Loading…
Reference in a new issue