folly::errnoStr is safer than Util::safe_strerror

- Eliminate Util::safe_strerror and use folly::errnoStr instead since the former is less safe as it doesn't preserve errno

Differential Revision: D920282
Esse commit está contido em:
Sean Cannella
2013-08-08 18:14:03 -07:00
commit de Sara Golemon
commit 439d8d34fe
35 arquivos alterados com 144 adições e 113 exclusões
+2 -1
Ver Arquivo
@@ -531,7 +531,8 @@ class StackElms {
size_t algnSz = RuntimeOption::EvalVMStackElms * sizeof(TypedValue);
if (posix_memalign((void**)&m_elms, algnSz, algnSz) != 0) {
throw std::runtime_error(
std::string("VM stack initialization failed: ") + strerror(errno));
std::string("VM stack initialization failed: ") +
folly::errnoStr(errno).c_str());
}
}
return m_elms;