From 0bee65f0622c4faa8ac8ae771cc0c8a936dfa284 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 Nov 2013 18:08:02 +0100 Subject: shutdown: during final killing spree also send SIGHUP in addition to SIGTERM to deal with shells This makes shutdown a bit faster if debug-shell.service is enabled. --- src/core/shutdown.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/shutdown.c') diff --git a/src/core/shutdown.c b/src/core/shutdown.c index bcf2eecf33..31129b7697 100644 --- a/src/core/shutdown.c +++ b/src/core/shutdown.c @@ -195,10 +195,10 @@ int main(int argc, char *argv[]) { mlockall(MCL_CURRENT|MCL_FUTURE); log_info("Sending SIGTERM to remaining processes..."); - broadcast_signal(SIGTERM, true); + broadcast_signal(SIGTERM, true, true); log_info("Sending SIGKILL to remaining processes..."); - broadcast_signal(SIGKILL, true); + broadcast_signal(SIGKILL, true, false); if (in_container) { need_swapoff = false; -- cgit v1.2.3-54-g00ecf