mirror of
https://github.com/systemd/systemd.git
synced 2024-12-02 23:03:50 +08:00
shutdown: re-enable CAD handling in kernel at start
This commit is contained in:
parent
758760a361
commit
0dd4a33454
@ -374,6 +374,11 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
log_set_always_reopen_console(true);
|
||||
|
||||
/* Re-enable reboot on Ctrl-Alt-Delete, so that if close/broadcast_signal/umount/... stalls,
|
||||
* or an error is encountered and we freeze(), the user can still initiate a force reboot
|
||||
* through kernel. */
|
||||
(void) reboot(RB_ENABLE_CAD);
|
||||
|
||||
r = parse_argv(argc, argv);
|
||||
if (r < 0)
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user