From: Ben Gras Date: Thu, 11 May 2006 14:01:44 +0000 (+0000) Subject: call cons_stop() before sys_abort() to not break tty on shutdown X-Git-Tag: v3.1.3~369 X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/mem/static/processing.js?a=commitdiff_plain;h=5a8315cf5bece6f9c51b3f4589ac74d0f09b343d;p=minix.git call cons_stop() before sys_abort() to not break tty on shutdown --- diff --git a/drivers/tty/keyboard.c b/drivers/tty/keyboard.c index 74dbbe8ad..023807527 100644 --- a/drivers/tty/keyboard.c +++ b/drivers/tty/keyboard.c @@ -644,7 +644,10 @@ int scode; /* scan code of key just struck or released */ */ if (ctrl && alt && (scode == DEL_SCAN || scode == INS_SCAN)) { - if (++CAD_count == 3) sys_abort(RBT_HALT); + if (++CAD_count == 3) { + cons_stop(); + sys_abort(RBT_HALT); + } sys_kill(INIT_PROC_NR, SIGABRT); return -1; }