diff options
| author | 2021-06-03 16:44:09 +0100 | |
|---|---|---|
| committer | 2021-07-09 10:08:36 +0100 | |
| commit | d9a25ed9d2474bae6961634072f831c2554dbcb6 (patch) | |
| tree | 54b77660cfacda3f155e6d8079abc495c6569ee4 /libs/gui/BufferQueueThreadState.cpp | |
| parent | db924707a033dc6e783dc8ab265c8e61e273531c (diff) | |
Check if /dev/input exists before accessing the path
It is possible that development platforms don't have any input devices,
hence /dev/input directory won't be created. Hence check if /dev/input exists
before adding inotify watch and scanDirLocked for /dev/input.
inotify_add_watch is also added for /dev/input when it is created. for e.g.
during EventHubTest.
Signed-off-by: Usama Arif <usama.arif@arm.com>
Change-Id: I8675921280e351dd8885becce79a7cb4a9936c10
Merged-In: I8675921280e351dd8885becce79a7cb4a9936c10
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions