Chromium Code Reviews
DescriptionFix double-close in EventConverterEvdevImpl
This fixes a double close that occurs when a keyboard or mouse is
unplugged from the system, which will cause breakage if there is a
concurrent open(). It also switches to a scoped file descriptor wrapper,
with a special close function because close() can return ENODEV on an
input device that was unplugged.
BUG=681865, 660960
TEST=events_unittests
Review-Url: https://codereview.chromium.org/2639043002
Cr-Commit-Position: refs/heads/master@{#444544}
Committed: https://chromium.googlesource.com/chromium/src/+/13ad1ff07b21ed9f4b7b5cb7c7cebdff0b8fe0c1
Patch Set 1 #
Total comments: 2
Patch Set 2 : remove base::debug::Alias #
Total comments: 4
Messages
Total messages: 32 (13 generated)
|