summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartijn Coenen2016-01-20 18:39:16 -0600
committerMartijn Coenen2016-02-01 14:04:24 -0600
commitb82bab66f318896ebad80c1feee2347c58e3ce37 (patch)
treeff971f83721d006df7150c8a53f440d246d33c36 /libprocessgroup/Android.mk
parentc003b515e9668ee91d14eea124b66f6bcef89377 (diff)
downloadplatform-system-core-b82bab66f318896ebad80c1feee2347c58e3ce37.tar.gz
platform-system-core-b82bab66f318896ebad80c1feee2347c58e3ce37.tar.xz
platform-system-core-b82bab66f318896ebad80c1feee2347c58e3ce37.zip
Reuse mem cgroups for tracking forked PIDs.
It turns out we were using the CPU accounting cgroups for keeping track of processes that were forked by an app without the framework's knowledge, so we could kill all of them reliably (see b/15313911 for context). Since we want to use memory cgroups for other purposes, we might as well use memory cgroups for tracking forked PIDs if they're enabled. This also gets us automatic cleanup of empty mem cgroups. Also, removed old mem cgroup mount point that is no longer used, as well as cgroup release agent code that we're not using. Change-Id: I69d5cc31c162ffa49ef6945755f41381e306cc8b
Diffstat (limited to 'libprocessgroup/Android.mk')
-rw-r--r--libprocessgroup/Android.mk10
1 files changed, 0 insertions, 10 deletions
diff --git a/libprocessgroup/Android.mk b/libprocessgroup/Android.mk
index ee6ba5868..1885fa5dd 100644
--- a/libprocessgroup/Android.mk
+++ b/libprocessgroup/Android.mk
@@ -7,14 +7,4 @@ LOCAL_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
10LOCAL_REQUIRED_MODULE := processgroup_cleanup
11include $(BUILD_SHARED_LIBRARY) 10include $(BUILD_SHARED_LIBRARY)
12
13include $(CLEAR_VARS)
14LOCAL_SRC_FILES := cleanup.cpp
15LOCAL_MODULE := processgroup_cleanup
16LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
17LOCAL_CFLAGS := -Wall -Werror
18LOCAL_FORCE_STATIC_EXECUTABLE := true
19LOCAL_STATIC_LIBRARIES := libc libcutils
20include $(BUILD_EXECUTABLE)