New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 737501 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

atrusd: cleanup logic for diagnostics polling

Project Member Reported by lndmrk@chromium.org, Jun 28 2017

Issue description

In HIDConnection::WaitUntilReadable() there's a select(2) call. Currently, there's no handling for a timeout that occurs prematurely.
 

Comment 1 by lndmrk@chromium.org, Jun 28 2017

Status: Started (was: Assigned)
Cc: rpattumani@chromium.org dsunk...@chromium.org mzhuo@chromium.org harpreet@chromium.org
Project Member

Comment 3 by bugdroid1@chromium.org, Jul 6 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/atrusctl/+/88c21796519de5941d0e541f9b89bfae1c853617

commit 88c21796519de5941d0e541f9b89bfae1c853617
Author: Emil Lundmark <lndmrk@chromium.org>
Date: Thu Jul 06 10:26:31 2017

Correctly indicate a timeout when polling diagnostics

Previously, a generic error was interpreted as a timeout.

BUG= chromium:737501 
TEST=emerge-guado atrusctl

Change-Id: Ib96535b44d0de13a11b5fbdcab37eacef9ff8f79
Reviewed-on: https://chromium-review.googlesource.com/552543
Commit-Ready: Emil Lundmark <lndmrk@chromium.org>
Tested-by: Emil Lundmark <lndmrk@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Karl Petersson <karl@limesaudio.com>

[modify] https://crrev.com/88c21796519de5941d0e541f9b89bfae1c853617/src/hid_connection.cc
[modify] https://crrev.com/88c21796519de5941d0e541f9b89bfae1c853617/src/hidraw_device.cc
[modify] https://crrev.com/88c21796519de5941d0e541f9b89bfae1c853617/src/hid_connection.h

Status: Verified (was: Started)
Labels: Proj-Bluestreak

Sign in to add a comment