28 lines
966 B
Diff
28 lines
966 B
Diff
|
From f49fd1d57a429d4a05ac86352c017a845f8185b3 Mon Sep 17 00:00:00 2001
|
||
|
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
|
||
|
Date: Tue, 7 May 2013 14:16:53 +0200
|
||
|
Subject: [PATCH] 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.1.4
|
||
|
|