[systemd-devel] [PATCH] Start ctrl-alt-del.target irreversibly

Eelco Dolstra eelco.dolstra at logicblox.com
Tue May 7 05:16:53 PDT 2013


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



More information about the systemd-devel mailing list