X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fmanager.c;h=0b24cddc5f3cabc469b9ee108916ba55da6511e2;hb=615938651d3a4fd9253b08da00db22d451a8cef8;hp=336ec1ed78269a013f48c487e13edef52fb075d8;hpb=2e5c94b9aaefce46835b623e800cfc168995ea3f;p=elogind.git diff --git a/src/core/manager.c b/src/core/manager.c index 336ec1ed7..0b24cddc5 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -1725,14 +1725,15 @@ static int manager_dispatch_signal_fd(sd_event_source *source, int fd, uint32_t case SIGINT: if (m->running_as == SYSTEMD_SYSTEM) { - /* If the user presses C-A-D too more - * than 7 times within 2s, we reboot + /* If the user presses C-A-D more than + * 7 times within 2s, we reboot * immediately. */ if (ratelimit_test(&m->ctrl_alt_del_ratelimit)) manager_start_target(m, SPECIAL_CTRL_ALT_DEL_TARGET, JOB_REPLACE_IRREVERSIBLY); else { log_notice("Ctrl-Alt-Del was pressed more than 7 times within 2s, rebooting immediately."); + status_printf(NULL, true, false, "Ctrl-Alt-Del was pressed more than 7 times within 2s, rebooting immediately."); m->exit_code = MANAGER_REBOOT; }