summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCollin Mulliner2016-06-01 16:03:55 -0500
committerElliott Hughes2016-06-06 18:31:01 -0500
commitf7e79b99c1e9e3128dd9921871f7740bebb755e6 (patch)
tree10367b6bcba6ad7061c1362efbc4ef53f0e672b9 /libprocessgroup/Android.mk
parent605628d325b003251155b5c5b425028106bf8f29 (diff)
downloadplatform-system-core-f7e79b99c1e9e3128dd9921871f7740bebb755e6.tar.gz
platform-system-core-f7e79b99c1e9e3128dd9921871f7740bebb755e6.tar.xz
platform-system-core-f7e79b99c1e9e3128dd9921871f7740bebb755e6.zip
use process groups for processes started by init
Put every service into a process group, kill the process group and all child processes created within the group when killing the service. Removed libutil dependency in libprocessgroup. Bug: 25355957 Change-Id: Ieed60ec41579f638ab9b1e66a7e6330ed578ab05 Signed-off-by: Collin Mulliner <collinrm@squareup.com>
Diffstat (limited to 'libprocessgroup/Android.mk')
-rw-r--r--libprocessgroup/Android.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/libprocessgroup/Android.mk b/libprocessgroup/Android.mk
index ee6ba5868..87985d468 100644
--- a/libprocessgroup/Android.mk
+++ b/libprocessgroup/Android.mk
@@ -3,7 +3,16 @@ 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 libutils 6LOCAL_STATIC_LIBRARIES := liblog
7LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
8LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
9LOCAL_CFLAGS := -Wall -Werror
10include $(BUILD_STATIC_LIBRARY)
11
12include $(CLEAR_VARS)
13LOCAL_SRC_FILES := processgroup.cpp
14LOCAL_MODULE := libprocessgroup
15LOCAL_SHARED_LIBRARIES := liblog
7LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 16LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
8LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 17LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
9LOCAL_CFLAGS := -Wall -Werror 18LOCAL_CFLAGS := -Wall -Werror