summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDianne Hackborn2014-10-13 19:45:22 -0500
committerDianne Hackborn2014-10-13 19:52:32 -0500
commit2c5e7e102bc2059d22f8457db68c567b64cec963 (patch)
tree520bb9860e196dfcb130fc99a4bc7958e68669ab /libprocessgroup/Android.mk
parent8218b6aae9cd4a19fa074a8a8203fe9275b35447 (diff)
downloadplatform-system-core-2c5e7e102bc2059d22f8457db68c567b64cec963.tar.gz
platform-system-core-2c5e7e102bc2059d22f8457db68c567b64cec963.tar.xz
platform-system-core-2c5e7e102bc2059d22f8457db68c567b64cec963.zip
Maybe fix issue #17969789: Shamu FR: Runtime restart while scrolling Instagram
It looks like there were a couple problems in the code: - It would not 0-terminate the string it read, to make sure we didn't see garbage at the end. - It didn't reduce buf_len as it processes data in the buffer, so if we need to read more we will increase the buffer length to be longer than the actual available data. Also put in some logs about every thing we kill, so we can see what is going on when debugging. And add a special check for us trying to kill pid 0 for any reason, since doing so seem to be terminal to the caller. Change-Id: I2fe29bfef08938b8a2eb182475c0705c14d8d84f
Diffstat (limited to 'libprocessgroup/Android.mk')
-rw-r--r--libprocessgroup/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/libprocessgroup/Android.mk b/libprocessgroup/Android.mk
index 501321f30..051999adc 100644
--- a/libprocessgroup/Android.mk
+++ b/libprocessgroup/Android.mk
@@ -3,7 +3,7 @@ LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS) 3include $(CLEAR_VARS)
4LOCAL_SRC_FILES := processgroup.cpp 4LOCAL_SRC_FILES := processgroup.cpp
5LOCAL_MODULE := libprocessgroup 5LOCAL_MODULE := libprocessgroup
6LOCAL_SHARED_LIBRARIES := liblog 6LOCAL_SHARED_LIBRARIES := liblog libutils
7LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 7LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
8LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 8LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
9LOCAL_CFLAGS := -Wall -Werror 9LOCAL_CFLAGS := -Wall -Werror