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

Unified Diff: ppapi/native_client/src/trusted/plugin/srpc_client.cc

Issue 10830149: Kill pnacl translation processes immediately on coordinator error and destruction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/srpc_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/trusted/plugin/srpc_client.cc
diff --git a/ppapi/native_client/src/trusted/plugin/srpc_client.cc b/ppapi/native_client/src/trusted/plugin/srpc_client.cc
index 3627a312b17ab1a9d84b0658b74114ca9d274751..31cc37b7ab260dd592cc5a93f337c229f5df8a0f 100644
--- a/ppapi/native_client/src/trusted/plugin/srpc_client.cc
+++ b/ppapi/native_client/src/trusted/plugin/srpc_client.cc
@@ -182,14 +182,14 @@ bool SrpcClient::Invoke(const nacl::string& method_name, SrpcParams* params) {
PLUGIN_PRINTF(("SrpcClient::Invoke (sending the rpc)\n"));
// Call the method
- NaClSrpcError err = NaClSrpcInvokeV(&srpc_channel_,
- methods_[method_name]->index(),
- params->ins(),
- params->outs());
- PLUGIN_PRINTF(("SrpcClient::Invoke (response=%d)\n", err));
- if (NACL_SRPC_RESULT_OK != err) {
+ last_error_ = NaClSrpcInvokeV(&srpc_channel_,
+ methods_[method_name]->index(),
+ params->ins(),
+ params->outs());
+ PLUGIN_PRINTF(("SrpcClient::Invoke (response=%d)\n", last_error_));
+ if (NACL_SRPC_RESULT_OK != last_error_) {
PLUGIN_PRINTF(("SrpcClient::Invoke (err='%s', return 0)\n",
- NaClSrpcErrorString(err)));
+ NaClSrpcErrorString(last_error_)));
return false;
}
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/srpc_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698