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

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

Issue 66343004: [NaCl SDK] ppapi_simple: Allow initial terminal size to to be set on startup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/ppapi_simple/ps_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 af9b7543a1637684f46f26267246daad9fe672d1..6b8fb66877134d19067d5b4f5fe4e600262ba66c 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
@@ -257,6 +257,8 @@ Error MountNodeTty::VIoctl(int request, va_list args) {
struct winsize* size = va_arg(args, struct winsize*);
{
AUTO_LOCK(node_lock_);
+ if (rows_ == size->ws_row && cols_ == size->ws_col)
+ return 0;
rows_ = size->ws_row;
cols_ = size->ws_col;
}
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/ppapi_simple/ps_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698