mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 19:21:53 +03:00
Start ctrl-alt-del.target irreversibly
This makes ctrl-alt-del reboots more robust, just like "systemctl reboot".
This commit is contained in:
parent
a7739f8f97
commit
f49fd1d57a
@ -1372,7 +1372,7 @@ static int manager_process_signal_fd(Manager *m) {
|
|||||||
|
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
if (m->running_as == SYSTEMD_SYSTEM) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user