* Don't return B_OK from Start() if opening the device failed. Then Stop()

won't be called, the control thread will remove the device anyways.
* Turned off the debug output I left on accidentally in KeyboardInputDevice.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28642 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-11-13 22:14:40 +00:00
parent b419343e89
commit 9195fe6efe
3 changed files with 5 additions and 4 deletions

View File

@ -27,7 +27,7 @@
#undef TRACE #undef TRACE
#define TRACE_KEYBOARD_DEVICE //#define TRACE_KEYBOARD_DEVICE
#ifdef TRACE_KEYBOARD_DEVICE #ifdef TRACE_KEYBOARD_DEVICE
class FunctionTracer { class FunctionTracer {
@ -497,7 +497,8 @@ KeyboardDevice::Start()
fActive = true; fActive = true;
resume_thread(fThread); resume_thread(fThread);
return B_OK;
return fFD >= 0 ? B_OK : B_ERROR;
} }
void void

View File

@ -210,7 +210,7 @@ MouseDevice::Start()
return status; return status;
} }
return B_OK; return fDevice >= 0 ? B_OK : B_ERROR;
} }

View File

@ -180,7 +180,7 @@ TouchpadDevice::Start()
return status; return status;
} }
return B_OK; return fDevice >= 0 ? B_OK : B_ERROR;
} }