summaryrefslogtreecommitdiff
path: root/src/core/shutdown.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-25 18:08:02 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-25 22:10:22 +0100
commit0bee65f0622c4faa8ac8ae771cc0c8a936dfa284 (patch)
tree7ee568dce15589f4b2d3e1d38220f6deb8ee847f /src/core/shutdown.c
parent26fefda707e6511733f48da03b281a004dba6abf (diff)
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.
Diffstat (limited to 'src/core/shutdown.c')
-rw-r--r--src/core/shutdown.c4
1 files changed, 2 insertions, 2 deletions
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;