diff options
author | Nick Sanders <nsanders@chromium.org> | 2018-04-16 21:05:43 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-18 09:30:34 -0700 |
commit | ee7850b50fb73a68460e25217f8b5ebd812d6045 (patch) | |
tree | 6ce8032261c8f9ad8034bd9625dae51f37dc0449 /COMMIT-QUEUE.ini | |
parent | b107af470ec7d15d1931b943ef9fc902e57c27f9 (diff) | |
download | chrome-ec-ee7850b50fb73a68460e25217f8b5ebd812d6045.tar.gz |
ec3po: console: Detect HUP from user console
ec3po writes to the user pty, which may or may not be open.
Since ptys have limited buffer space, we need to avoid
writing to them if they will never be drained.
ec3po now looks for HUP to indicate whether the pts is opened
or closed, and reads/writes accordingly.
BRANCH=None
BUG=b:76111225
TEST=dut-control ec_board:fizz x 400
Change-Id: Icbecb2e42b261659a006eb1b9fc6dd73490a2218
Signed-off-by: Nick Sanders <nsanders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1014792
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'COMMIT-QUEUE.ini')
0 files changed, 0 insertions, 0 deletions