From b91ada2a61a86326b9fca932e04fefc958f39e32 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 31 May 2018 15:50:46 +0200 Subject: [PATCH] core: watch PIDs of scope units right after starting them Scope units don't have a main or control process we can watch, hence let's explicitly watch the PIDs contained in them early on, just to make things more robust and have at least something to watch. --- src/core/scope.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/scope.c b/src/core/scope.c index 0d22c7525b3..5db32960441 100644 --- a/src/core/scope.c +++ b/src/core/scope.c @@ -347,6 +347,9 @@ static int scope_start(Unit *u) { s->result = SCOPE_SUCCESS; scope_set_state(s, SCOPE_RUNNING); + + /* Start watching the PIDs currently in the scope */ + (void) unit_enqueue_rewatch_pids(UNIT(s)); return 1; } -- 2.47.3