From db2cb23b5b179707000d28a11efb3d888d06ee80 Mon Sep 17 00:00:00 2001 From: Umut Tezduyar Lindskog Date: Tue, 28 Oct 2014 16:35:40 +0100 Subject: core: send sigabrt on watchdog timeout to get the stacktrace if sigabrt doesn't do the job, follow regular shutdown routine, sigterm > sigkill. --- src/core/swap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/swap.c') diff --git a/src/core/swap.c b/src/core/swap.c index 13e12ad67a..1add722bf1 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -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); -- cgit v1.2.3-54-g00ecf