From 8ef609cc5fdc6c2bafa226ff2378969ca5fad43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 15 Apr 2010 09:00:11 +0000 Subject: [PATCH] * Now actually launch more than one keyboard thread (before that would have worked only if all drivers were in one directory). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36281 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/system/consoled/consoled.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tests/system/consoled/consoled.cpp b/src/tests/system/consoled/consoled.cpp index 351f112fea..0034072764 100644 --- a/src/tests/system/consoled/consoled.cpp +++ b/src/tests/system/consoled/consoled.cpp @@ -239,8 +239,10 @@ open_keyboards(int target, const char* start, struct keyboard* previous) if (::stat(path, &stat) != 0) continue; - if (S_ISDIR(stat.st_mode)) - return open_keyboards(target, path, previous); + if (S_ISDIR(stat.st_mode)) { + keyboard = open_keyboards(target, path, keyboard); + continue; + } // Try to open it as a device int fd = open(path, O_RDONLY);