diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-09-11 19:26:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-09-11 19:28:28 +0200 |
commit | 7b617155b50fdaad5d06359eb03e98f0c7b3087b (patch) | |
tree | 75fc8974a9a65248f36a818907f3ba84ab74e924 /src/core/scope.c | |
parent | 44ded3abc28620279633f51a05f2416e5aa3e8e2 (diff) |
core: failed scope units may not be restarted
We don't allow reusing of scopes.
Diffstat (limited to 'src/core/scope.c')
-rw-r--r-- | src/core/scope.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |