| Index: content/ppapi_plugin/ppapi_thread.cc
|
| diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
|
| index 1bb38b1113a8498a4e4b70b9ae2efb4500a33324..b437de2390b80382232ce75e9860994ed4949a34 100644
|
| --- a/content/ppapi_plugin/ppapi_thread.cc
|
| +++ b/content/ppapi_plugin/ppapi_thread.cc
|
| @@ -300,6 +300,8 @@ bool PpapiThread::SetupRendererChannel(base::ProcessHandle host_process_handle,
|
| // On POSIX, pass the renderer-side FD.
|
| handle->socket = base::FileDescriptor(::dup(dispatcher->GetRendererFD()),
|
| true);
|
| + if (handle->socket.fd == -1)
|
| + return false;
|
| #endif
|
|
|
| // From here, the dispatcher will manage its own lifetime according to the
|
|
|