From a73c039b1d7a389fb7f5b29ab5e966df4d128fdf Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Wed, 17 Jul 2024 13:18:38 +0100 Subject: [PATCH] roll back fatal error that breaks some platform (wasm) expectations --- src/sysinfo.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sysinfo.cc b/src/sysinfo.cc index 7261e2a9..708a3e00 100644 --- a/src/sysinfo.cc +++ b/src/sysinfo.cc @@ -508,7 +508,8 @@ int GetNumCPUsImpl() { int max_id = -1; std::ifstream f("/proc/cpuinfo"); if (!f.is_open()) { - PrintErrorAndDie("Failed to open /proc/cpuinfo"); + std::cerr << "Failed to open /proc/cpuinfo\n"; + return -1; } #if defined(__alpha__) const std::string Key = "cpus detected";