* 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
This commit is contained in:
parent
7089514138
commit
8ef609cc5f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user