Chromium Code Reviews| 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 |