X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fswap.c;h=1add722bf13db58cf4869f63380cebd90c493bf8;hb=45071fcaa03eafc27352987fa2277b2792725036;hp=13e12ad67a1ea268938cc7dc8c8abd488fdcd2e6;hpb=f10af76de5e6589e35ed620c75f3f6eb02cdf345;p=elogind.git diff --git a/src/core/swap.c b/src/core/swap.c index 13e12ad67..1add722bf 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);