Chromium Code Reviews| Index: runtime/bin/file_linux.cc |
| diff --git a/runtime/bin/file_linux.cc b/runtime/bin/file_linux.cc |
| index b45ce046a79597b8ea0087297ab49b0b394377c0..8d5171a2e6612bb5ee3152a98d42d75a15c85755 100644 |
| --- a/runtime/bin/file_linux.cc |
| +++ b/runtime/bin/file_linux.cc |
| @@ -47,10 +47,7 @@ void File::Close() { |
| ASSERT(handle_->fd() >= 0); |
| int err = TEMP_FAILURE_RETRY(close(handle_->fd())); |
| if (err != 0) { |
| - const int kBufferSize = 1024; |
| - char error_message[kBufferSize]; |
| - strerror_r(errno, error_message, kBufferSize); |
| - Log::PrintErr("%s\n", error_message); |
| + Log::PrintErr("%s\n", strerror(errno)); |
|
Ivan Posva
2013/08/07 18:33:44
strerror is not multithread safe and you should be
|
| } |
| handle_->set_fd(kClosedFd); |
| } |