summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross2014-06-03 15:24:21 -0500
committerColin Cross2014-07-09 19:24:39 -0500
commitcf8d1c22f7e239f502a7d209e2255d2997dbeb8b (patch)
tree31ada62605f66b16c7963aedc7c8fc45974c1aef /libprocessgroup/Android.mk
parent038975a5c85caa758294102d4577d063d7e02651 (diff)
downloadplatform-system-core-cf8d1c22f7e239f502a7d209e2255d2997dbeb8b.tar.gz
platform-system-core-cf8d1c22f7e239f502a7d209e2255d2997dbeb8b.tar.xz
platform-system-core-cf8d1c22f7e239f502a7d209e2255d2997dbeb8b.zip
Add libprocessgroup
libprocessgroup will allow Zygote to place processes in a cgroup, and then kill the process and all forked processes later. lmkd will also kill all forked processes. Bug: 15313911 Change-Id: I20404d0dbe448f1c475d2f4c61cccca462f9e544
Diffstat (limited to 'libprocessgroup/Android.mk')
-rw-r--r--libprocessgroup/Android.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/libprocessgroup/Android.mk b/libprocessgroup/Android.mk
new file mode 100644
index 000000000..501321f30
--- /dev/null
+++ b/libprocessgroup/Android.mk
@@ -0,0 +1,21 @@
1LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4LOCAL_SRC_FILES := processgroup.cpp
5LOCAL_MODULE := libprocessgroup
6LOCAL_SHARED_LIBRARIES := liblog
7LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
8LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
9LOCAL_CFLAGS := -Wall -Werror
10LOCAL_REQUIRED_MODULE := processgroup_cleanup
11include external/libcxx/libcxx.mk
12include $(BUILD_SHARED_LIBRARY)
13
14include $(CLEAR_VARS)
15LOCAL_SRC_FILES := cleanup.cpp
16LOCAL_MODULE := processgroup_cleanup
17LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
18LOCAL_CFLAGS := -Wall -Werror
19LOCAL_FORCE_STATIC_EXECUTABLE := true
20LOCAL_STATIC_LIBRARIES := libc libcutils
21include $(BUILD_EXECUTABLE)