commit | 0f964b492c9a7a683a5becd8c662a1622431e334 | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Thu Apr 16 18:46:03 2020 -0700 |
committer | William A. Kennington III <wak@google.com> | Fri Apr 17 10:03:43 2020 -0700 |
tree | ef646db70f8949280029847159c45693eebc9005 | |
parent | ad2a08c7de9198246fec77c457d4c14f7bc4c1fb [diff] |
main: Fixup non-blocking reads Sometimes, we can get the notification of a read that ends up returning EAGAIN or EWOULDBLOCK. We need to handle this as a non-error case as this is normal for non-blocking file descriptors. We can also optimize the routine by using edge triggering and reading out all available post codes until we get an EAGAIN. Change-Id: I16585cf70620ae8cd54ef284a0fe357401957f42 Signed-off-by: William A. Kennington III <wak@google.com>