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

Unified Diff: native_client_sdk/src/libraries/nacl_io/devfs/tty_node.cc

Issue 242533005: [NaCl SDK] nacl_io: Add flow control the JavaScript pipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: native_client_sdk/src/libraries/nacl_io/devfs/tty_node.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/devfs/tty_node.cc b/native_client_sdk/src/libraries/nacl_io/devfs/tty_node.cc
index fe4bbfdc9626b15141c4de291d4c657c94e15035..e3f57ed368b4ac89a00c4222d1123e2b9157cbda 100644
--- a/native_client_sdk/src/libraries/nacl_io/devfs/tty_node.cc
+++ b/native_client_sdk/src/libraries/nacl_io/devfs/tty_node.cc
@@ -110,6 +110,8 @@ Error TtyNode::Read(const HandleAttr& attr,
// If interrupted, return
Error err = wait.WaitOnEvent(POLLIN, -1);
+ if (err == ETIMEDOUT)
+ err = EWOULDBLOCK;
if (err != 0)
return err;

Powered by Google App Engine
This is Rietveld 408576698