Revision: 14170
Author:   [email protected]
Date:     Mon Apr  8 15:51:00 2013
Log:      MIPS: ARM: Log an error if /proc/cpuinfo cannot be opened

Port r14112 (8cc5081c)

Original commit message:
This will make it easier to see if the current CPU feature detection
starts breaking because of process sandboxing.

BUG=

Review URL: https://codereview.chromium.org/13582007
http://code.google.com/p/v8/source/detail?r=14170

Modified:
 /branches/bleeding_edge/src/platform-linux.cc

=======================================
--- /branches/bleeding_edge/src/platform-linux.cc       Sat Apr  6 21:34:20 2013
+++ /branches/bleeding_edge/src/platform-linux.cc       Mon Apr  8 15:51:00 2013
@@ -269,8 +269,10 @@
   FILE* f = NULL;
   const char* what = search_string;

-  if (NULL == (f = fopen(file_name, "r")))
+  if (NULL == (f = fopen(file_name, "r"))) {
+    OS::PrintError("Failed to open /proc/cpuinfo\n");
     return false;
+  }

   int k;
   while (EOF != (k = fgetc(f))) {

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to