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

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_node_tty.cc

Issue 23075013: [NaCl SDK] Enable select/poll on TTY nodes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/mount_node_tty.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node_tty.cc b/native_client_sdk/src/libraries/nacl_io/mount_node_tty.cc
index 7b9fb7943abdc552ab74aead3f3832d92555bc85..acb6bc67247f8561e58a58b54c2235080cebb125 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_node_tty.cc
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node_tty.cc
@@ -229,8 +229,10 @@ Error MountNodeTty::ProcessInput(struct tioc_nacl_input_string* message) {
is_readable_ = true;
}
- if (is_readable_)
+ if (is_readable_) {
+ RaiseEvent(POLLIN);
pthread_cond_broadcast(&is_readable_cond_);
+ }
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698