chiark / gitweb /
core: make sure to always go through both SIGTERM and SIGKILL states of units
[elogind.git] / src / core / scope.c
index 87983f6b1746aa9537b01bb0689afa5252d49dd8..5beb4f80c427c65ed8d0588379ef92e34cceb5ed 100644 (file)
@@ -238,7 +238,9 @@ static void scope_enter_signal(Scope *s, ScopeState state, ScopeResult f) {
                         goto fail;
 
                 scope_set_state(s, state);
-        } else
+        } else if (state == SCOPE_STOP_SIGTERM)
+                scope_enter_signal(s, SCOPE_STOP_SIGKILL, SCOPE_SUCCESS);
+        else
                 scope_enter_dead(s, SCOPE_SUCCESS);
 
         return;