summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* libprocessgroup: Android.mk -> Android.bpSteven Moreland2017-04-191-19/+0
| | | | | | | Test: links Test: (sanity) boot marlin in recovery + to system UI Bug: 37512442 Change-Id: Ie19c02bda9df7c0cfdeeaf34c48f251b2b93961d
* resolve merge conflicts of ed3596a to stage-aosp-masterElliott Hughes2016-08-031-2/+2
|\ | | | | | | Change-Id: I3c41782e2bf3563d3e3d6232d39eff3da94843fc
| * Switch libprocessgroup to libbase logging.Elliott Hughes2016-08-031-2/+2
| | | | | | | | | | | | | | | | This lets us see what's going on in init. Bug: http://b/29751426 Merged-In: I73432dc7608ca0dc8e421a2f3a750b37c6743f62 Change-Id: I73432dc7608ca0dc8e421a2f3a750b37c6743f62
* | resolve merge conflicts of cea1d04 to nyc-dev-plus-aospElliott Hughes2016-06-061-1/+10
|\| | | | | | | Change-Id: I41cdca717664a16f00fd1b28076dd752fa96653d
| * use process groups for processes started by initCollin Mulliner2016-06-061-1/+10
| | | | | | | | | | | | | | | | | | | | 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>
* | Reuse mem cgroups for tracking forked PIDs.Martijn Coenen2016-02-011-10/+0
|/ | | | | | | | | | | | | | | | | | | 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
* Remove uses of libcxx.mk.Dan Albert2015-03-271-1/+0
| | | | | | This is a no-op. Change-Id: Iecbcd5f6d818abbf98767a2e996c10f454b652e4
* Maybe fix issue #17969789: Shamu FR: Runtime restart while scrolling InstagramDianne Hackborn2014-10-131-1/+1
| | | | | | | | | | | | | | | | | 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
* Add libprocessgroupColin Cross2014-07-091-0/+21
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