summaryrefslogtreecommitdiffstats
path: root/logd
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-04-25 09:54:24 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-04-25 09:54:24 -0700
commitf2244c4976db5be599e58ed602a7ff823589ebc3 (patch)
tree50d7f8ceae895c0f5ba71f71f2314ee8b1a23ae1 /logd
parentc3177b0094157a020db70836bbe09fed55bc6814 (diff)
parent587297953e8c8130a76f644ccb90480e5e69dc96 (diff)
downloadsystem_core-f2244c4976db5be599e58ed602a7ff823589ebc3.tar.gz
system_core-f2244c4976db5be599e58ed602a7ff823589ebc3.tar.bz2
system_core-f2244c4976db5be599e58ed602a7ff823589ebc3.zip
Merge "logd: notify kernel log readers of new messages" am: 6a2686b0f3
am: 587297953e Change-Id: Ic20fc2717b3e64111a664ae76b5837d8d45deda5
Diffstat (limited to 'logd')
-rwxr-xr-xlogd/LogKlog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/LogKlog.cpp b/logd/LogKlog.cpp
index 7a7ac7da8..ab980ac5d 100755
--- a/logd/LogKlog.cpp
+++ b/logd/LogKlog.cpp
@@ -825,7 +825,7 @@ int LogKlog::log(const char* buf, ssize_t len) {
(unsigned short)n);
// notify readers
- if (!rc) {
+ if (rc > 0) {
reader->notifyNewLog(static_cast<log_mask_t>(1 << LOG_ID_KERNEL));
}