diff options
author | Josh Gao <jmgao@google.com> | 2017-10-16 14:10:08 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2017-10-16 15:05:37 -0700 |
commit | ff9e43fa6dcd44cecb81149c8410c071ef840723 (patch) | |
tree | 50e913b8641dd213a2ce73d4b4c354b5dbc26a1c /runtime/signal_catcher.cc | |
parent | baeedfee3521c295916e3ae85afa2cb5dee7d6a5 (diff) | |
download | art-ff9e43fa6dcd44cecb81149c8410c071ef840723.tar.gz art-ff9e43fa6dcd44cecb81149c8410c071ef840723.tar.bz2 art-ff9e43fa6dcd44cecb81149c8410c071ef840723.zip |
signal_catcher: print errno when tombstoned_notify_completion fails.
Failure here could either be someone internal closing our FD (EBADF) or
tombstoned closing its end of the socket (EPIPE). Print the error to
disambiguate the cases.
Bug: 67805174
Test: treehugger
Change-Id: Ie35cb31218b5bb08757e61360c6539d39eece08b
Diffstat (limited to 'runtime/signal_catcher.cc')
-rw-r--r-- | runtime/signal_catcher.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/signal_catcher.cc b/runtime/signal_catcher.cc index b50879f0a9..a1f14be0f1 100644 --- a/runtime/signal_catcher.cc +++ b/runtime/signal_catcher.cc @@ -170,7 +170,7 @@ void SignalCatcher::Output(const std::string& s) { #if defined(ART_TARGET_ANDROID) if (use_tombstoned_stack_trace_fd_ && !tombstoned_notify_completion(tombstone_fd)) { - LOG(WARNING) << "Unable to notify tombstoned of dump completion."; + PLOG(WARNING) << "Unable to notify tombstoned of dump completion"; } #endif } |