From dd3c15369e42f19f2c8b794be34217ebb566a8a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 9 Aug 2005 13:21:01 +0000 Subject: [PATCH] The "consoled" application was broken since r13800 - it did open the console driver in read-only mode, but only wrote to it (which erroneously worked before that change). Only a white screen appeared, no prompt, nothing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13918 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kernel/consoled/consoled.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/kernel/consoled/consoled.cpp b/src/tests/kernel/consoled/consoled.cpp index 7abf6b514b..40448acae1 100644 --- a/src/tests/kernel/consoled/consoled.cpp +++ b/src/tests/kernel/consoled/consoled.cpp @@ -180,12 +180,12 @@ start_console(struct console *con) if (con->wait_sem < 0) return -1; - con->console_fd = open("/dev/console", 0); + con->console_fd = open("/dev/console", O_WRONLY); if (con->console_fd < 0) return -2; #ifndef USE_INPUT_SERVER - con->keyboard_fd = open("/dev/keyboard", 0); + con->keyboard_fd = open("/dev/keyboard", O_RDONLY); if (con->keyboard_fd < 0) return -3; #endif