]> Zhao Yanbai Git Server - minix.git/commitdiff
call cons_stop() before sys_abort() to not break tty on shutdown
authorBen Gras <ben@minix3.org>
Thu, 11 May 2006 14:01:44 +0000 (14:01 +0000)
committerBen Gras <ben@minix3.org>
Thu, 11 May 2006 14:01:44 +0000 (14:01 +0000)
drivers/tty/keyboard.c

index 74dbbe8addc57d04d5b7ae6a2c703684098b6d8d..0238075278ea4ae9b9a21fd639b22e1b7e28f446 100644 (file)
@@ -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;
   }