Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: ui/events/ozone/evdev/key_event_converter.cc

Issue 150633005: evdev: Support device hotplug with udev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add TODOs Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/ozone/evdev/event_factory.cc ('k') | ui/events/ozone/evdev/scoped_udev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/key_event_converter.cc
diff --git a/ui/events/ozone/evdev/key_event_converter.cc b/ui/events/ozone/evdev/key_event_converter.cc
index b99200e142ea10d06da26d1c930737f22d7d6bc2..7949727ec6c9406da69722b08b9567043b0eebee 100644
--- a/ui/events/ozone/evdev/key_event_converter.cc
+++ b/ui/events/ozone/evdev/key_event_converter.cc
@@ -215,7 +215,8 @@ void KeyEventConverterEvdev::OnFileCanReadWithoutBlocking(int fd) {
if (read_size < 0) {
if (errno == EINTR || errno == EAGAIN)
return;
- PLOG(ERROR) << "error reading device " << path_.value();
+ if (errno != ENODEV)
+ PLOG(ERROR) << "error reading device " << path_.value();
Stop();
return;
}
« no previous file with comments | « ui/events/ozone/evdev/event_factory.cc ('k') | ui/events/ozone/evdev/scoped_udev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698