2e77679b0b
This fixes hangs during EC2 reboots (which are implemented by sending a ctrl-alt-del to the instance).
28 lines
970 B
Diff
28 lines
970 B
Diff
From ed7c22c76e1399861ec8e0216f08a7f9419eea50 Mon Sep 17 00:00:00 2001
|
|
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
|
|
Date: Tue, 7 May 2013 14:03:13 +0200
|
|
Subject: [PATCH 9/9] Start ctrl-alt-del.target irreversibly
|
|
|
|
This makes ctrl-alt-del reboots more robust, just like "systemctl
|
|
reboot".
|
|
---
|
|
src/core/manager.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/core/manager.c b/src/core/manager.c
|
|
index c7f8f20..0508628 100644
|
|
--- a/src/core/manager.c
|
|
+++ b/src/core/manager.c
|
|
@@ -1372,7 +1372,7 @@ static int manager_process_signal_fd(Manager *m) {
|
|
|
|
case SIGINT:
|
|
if (m->running_as == SYSTEMD_SYSTEM) {
|
|
- manager_start_target(m, SPECIAL_CTRL_ALT_DEL_TARGET, JOB_REPLACE);
|
|
+ manager_start_target(m, SPECIAL_CTRL_ALT_DEL_TARGET, JOB_REPLACE_IRREVERSIBLY);
|
|
break;
|
|
}
|
|
|
|
--
|
|
1.8.2.1
|
|
|