8e3e66dfbd
It was noticed on a very busy system this can take about 1s per loop. This starts to add up on thousands of processes. Firstly, prune out all the kernel threads. Then introduce a very small inline python script to find any pids that seem to be in the chroot without forking to examine each one. After that the existing loop just kills anything as before. Change-Id: Icc7bc7eda80ffcd636f97e6542d70c220e9c225e |
||
---|---|---|
.. | ||
common-defaults | ||
common-functions | ||
die | ||
img-defaults | ||
img-functions | ||
ramdisk-defaults | ||
ramdisk-functions |