From 7b617155b50fdaad5d06359eb03e98f0c7b3087b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 11 Sep 2013 19:26:47 +0200 Subject: core: failed scope units may not be restarted We don't allow reusing of scopes. --- src/core/scope.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/scope.c') diff --git a/src/core/scope.c b/src/core/scope.c index 20a969d913..b94f3ff7ba 100644 --- a/src/core/scope.c +++ b/src/core/scope.c @@ -239,6 +239,9 @@ static int scope_start(Unit *u) { assert(s); + if (s->state == SCOPE_FAILED) + return -EPERM; + if (s->state == SCOPE_STOP_SIGTERM || s->state == SCOPE_STOP_SIGKILL) return -EAGAIN; -- cgit v1.2.3-54-g00ecf