chiark / gitweb /
core: send sigabrt on watchdog timeout to get the stacktrace
[elogind.git] / src / core / swap.c
index 13e12ad67a1ea268938cc7dc8c8abd488fdcd2e6..1add722bf13db58cf4869f63380cebd90c493bf8 100644 (file)
@@ -687,7 +687,8 @@ static void swap_enter_signal(Swap *s, SwapState state, SwapResult f) {
         r = unit_kill_context(
                         UNIT(s),
                         &s->kill_context,
-                        state != SWAP_ACTIVATING_SIGTERM && state != SWAP_DEACTIVATING_SIGTERM,
+                        (state != SWAP_ACTIVATING_SIGTERM && state != SWAP_DEACTIVATING_SIGTERM) ?
+                        KILL_KILL : KILL_TERMINATE,
                         -1,
                         s->control_pid,
                         false);