summaryrefslogtreecommitdiffstats
path: root/libprocessgroup
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue #18000467: processgroup truncates bufferDianne Hackborn2014-10-151-1/+1
| | | | Change-Id: I3d98a4da9c47d83d25a11ff0ef94cfcab1feabea
* Maybe fix issue #17969789: Shamu FR: Runtime restart while scrolling InstagramDianne Hackborn2014-10-132-5/+29
| | | | | | | | | | | | | | | | | 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
* processgroup: close directories opened by removeAllProcessGroups()Colin Cross2014-08-201-2/+3
| | | | | | | | | removeAllProcessGroups and removeUidProcessGroups were calling opendir, but never called closedir. This would leave a leaked file descriptor for every /acct/uid_* directory that existed at boot. Change-Id: Ia08eccd42d6ad7a6c1c78402519ac2e53b4fc83a
* Add libprocessgroupColin Cross2014-07-095-0/+436
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