Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use thread-safe
strerror_r()
to get error message (#8087)
Summary: `strerror()` is not thread-safe, using `strerror_r()` instead. The API could be different on the different platforms, used the code from https://github.com/facebook/folly/blob/0deef031cb8aab76dc7e736f8b7c22d701d5f36b/folly/String.cpp#L457 Pull Request resolved: facebook/rocksdb#8087 Reviewed By: mrambacher Differential Revision: D27267151 Pulled By: jay-zhuang fbshipit-source-id: 4b8856d1ec069d5f239b764750682c56e5be9ddb Signed-off-by: Changlong Chen <levisonchen@live.cn>
- Loading branch information