summaryrefslogtreecommitdiffstats
path: root/src/core/path.c
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2019-09-09 14:38:35 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-09-17 10:11:32 +0200
commit8fca6944c2ee20c63d62154c8badddc77170b176 (patch)
tree8b000e050b4dcddc586b4a25c2c6299cbe95878c /src/core/path.c
parentMerge pull request #13565 from yuwata/network-drop-ipv6ll-address (diff)
downloadsystemd-8fca6944c2ee20c63d62154c8badddc77170b176.tar.xz
systemd-8fca6944c2ee20c63d62154c8badddc77170b176.zip
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
Diffstat (limited to 'src/core/path.c')
-rw-r--r--src/core/path.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/path.c b/src/core/path.c
index 562cd352a3..ac1289a658 100644
--- a/src/core/path.c
+++ b/src/core/path.c
@@ -480,11 +480,9 @@ static void path_enter_running(Path *p) {
p->inotify_triggered = false;
- r = path_watch(p);
- if (r < 0)
- goto fail;
-
path_set_state(p, PATH_RUNNING);
+ path_unwatch(p);
+
return;
fail: