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
This commit is contained in:
Axel Dörfler 2005-08-09 13:21:01 +00:00
parent 90dc946130
commit dd3c15369e

View File

@ -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