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

Unified Diff: chrome/nacl/nacl_helper_linux.cc

Issue 10695077: Better error reporting in nacl helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/nacl/nacl_helper_linux.cc
===================================================================
--- chrome/nacl/nacl_helper_linux.cc (revision 145264)
+++ chrome/nacl/nacl_helper_linux.cc (working copy)
@@ -234,9 +234,12 @@
<< fds.size();
}
} else {
- if (msglen != 0) {
- LOG(ERROR) << "nacl_helper unrecognized request: %s";
+ if (msglen > 0) {
Mark Seaborn 2012/07/09 09:19:05 ">=" would be more appropriate than ">" since errn
halyavin 2012/07/09 10:55:56 Done.
+ LOG(ERROR) << "nacl_helper unrecognized request: "
+ << std::string(buf, buf + msglen);
Mark Seaborn 2012/07/09 09:19:05 Is this appropriate, given that the buffer might c
halyavin 2012/07/09 10:55:56 We will print zeros then. They will not be visible
Mark Seaborn 2012/07/10 16:10:05 That's kind of icky. Maybe you could use GetDoubl
_exit(-1);
+ } else {
+ LOG(ERROR) << "receive from zygote failed, errno = " << errno;
Mark Seaborn 2012/07/09 09:19:05 Prefix this with "nacl_helper:"?
halyavin 2012/07/09 10:55:56 Done.
}
}
// if fork fails, send PID=-1 to zygote
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698