summaryrefslogtreecommitdiffstats
path: root/runtime/signal_catcher.cc
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2017-10-16 14:10:08 -0700
committerJosh Gao <jmgao@google.com>2017-10-16 15:05:37 -0700
commitff9e43fa6dcd44cecb81149c8410c071ef840723 (patch)
tree50e913b8641dd213a2ce73d4b4c354b5dbc26a1c /runtime/signal_catcher.cc
parentbaeedfee3521c295916e3ae85afa2cb5dee7d6a5 (diff)
downloadart-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.cc2
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
}