summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 23:31:37 +0000
committerpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 23:31:37 +0000
commita965dbb0d8fa705557bdc278e44397194747392a (patch)
tree0b6daab177ad1ca63ec48521534314bdfc695521
parent00f0b81e684035f705e44b818bb039bbeae2c274 (diff)
downloadchromium_src-a965dbb0d8fa705557bdc278e44397194747392a.zip
chromium_src-a965dbb0d8fa705557bdc278e44397194747392a.tar.gz
chromium_src-a965dbb0d8fa705557bdc278e44397194747392a.tar.bz2
Fix double close in PPAPI proxy
BUG=none TEST=using OOP pepper flash, open a flash site, close the page, check no warning of failing close Review URL: http://codereview.chromium.org/6691070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80719 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/ppapi_plugin/ppapi_thread.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
index 67d13a61..b67e578 100644
--- a/content/ppapi_plugin/ppapi_thread.cc
+++ b/content/ppapi_plugin/ppapi_thread.cc
@@ -121,7 +121,8 @@ bool PpapiThread::SetupRendererChannel(base::ProcessHandle host_process_handle,
handle->name = plugin_handle.name;
#if defined(OS_POSIX)
// On POSIX, pass the renderer-side FD.
- handle->socket = base::FileDescriptor(dispatcher->GetRendererFD(), false);
+ handle->socket = base::FileDescriptor(::dup(dispatcher->GetRendererFD()),
+ true);
#endif
return true;