| Index: content/ppapi_plugin/ppapi_thread.cc
|
| diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
|
| index c35bbd79eb5aedb57048b62d58ed7f060ef91662..c2dc8c25f4fd5c6212d623528850d31de185f70a 100644
|
| --- a/content/ppapi_plugin/ppapi_thread.cc
|
| +++ b/content/ppapi_plugin/ppapi_thread.cc
|
| @@ -301,6 +301,8 @@ bool PpapiThread::SetupRendererChannel(base::ProcessHandle host_process_handle,
|
| // This ensures this process will be notified when it is closed even if a
|
| // connection is not established.
|
| handle->socket = base::FileDescriptor(dispatcher->TakeRendererFD(), true);
|
| + if (handle->socket.fd == -1)
|
| + return false;
|
| #endif
|
|
|
| // From here, the dispatcher will manage its own lifetime according to the
|
|
|