No description
Find a file
Inseob Kim a049a9928b Kill services even when cgroups is disabled
process_cgroup_empty_ is used to indicate that a service is already
killed or not. If cgroup support lacks, services cannot be killed
because process_cgroup_empty_ is always true.

This change fixes it by not assigning process_cgroup_empty_ as true.
Instead, make KillProcessGroup send signals even when cgroup is
disabled. Also DoKillProcessGroupOnce() is updated so it returns a number of killed processes, excluding already dead processes. This behavior agrees with its name (DoKillProcessOnce), and it prevents regression upon missing cgroups, because kill(-pgid) will always
"succeed" so KillProcessGroup will loop even when all processes are
already dead.

Bug: 257264124
Test: boot microdroid, see services are terminated
Change-Id: I19abf19ff1b70c666cd6f12d0a12956765174aaa
2022-12-12 01:19:26 +00:00
bootstat bootstat: remove unused FDE boot events 2022-09-26 19:50:09 +00:00
cli-test
code_coverage Disable code_coverage.other for riscv64 2022-10-13 13:49:10 -07:00
debuggerd riscv64 doesn't require a 32-bit crash dump policy. 2022-11-14 20:06:16 +00:00
diagnose_usb
fastboot fastbootd: Add getvar is-force-debuggable 2022-11-22 17:32:21 +08:00
fs_mgr Merge "fs_mgr/OWNERS: Update bug component" 2022-12-01 17:16:57 +00:00
gatekeeperd hidl2aidl: conversion of gatekeeper hidl to aidl 2022-09-19 16:39:27 +00:00
healthd charger: fix secondary display not turning off after first display was off 2022-09-20 02:53:16 +00:00
include
init Kill services even when cgroups is disabled 2022-12-12 01:19:26 +00:00
janitors Update janitors. 2022-09-23 20:16:03 +00:00
libappfuse
libasyncio
libbinderwrapper
libcrypto_utils
libcutils Remove an obsolete workaround. 2022-10-18 16:31:04 +00:00
libdiskconfig
libgrallocusage
libkeyutils
libmodprobe
libnetutils
libpackagelistparser
libprocessgroup Kill services even when cgroups is disabled 2022-12-12 01:19:26 +00:00
libsparse Remove a file we haven't built since 2013. 2022-11-11 21:56:34 +00:00
libstats Make libstatspull_bindgen available to resolv apex. 2022-10-05 00:54:47 +08:00
libsuspend
libsync Declare the headers of the ndk_library 2022-09-08 21:59:20 +00:00
libsystem
libsysutils
libusbhost
libutils libutils: Fix missing definition of shared_ptr and unique_ptr 2022-11-25 12:15:53 +05:30
libvndksupport
llkd
mini_keyctl
mkbootfs
property_service Remove dalvik.vm.usejitprofiles system property. 2022-11-25 12:27:37 +00:00
reboot
rootdir Merge "Revert "add apex-ready event after post-fs-data"" 2022-11-14 06:51:14 +00:00
run-as
sdcard
shell_and_utilities
storaged storaged: Fix deprecated usages of protobuf API. 2022-09-25 08:18:20 +00:00
toolbox
trusty Merge "trusty/storage: Add property indicating when fs is ready" 2022-11-30 21:06:13 +00:00
usbd
watchdogd
.clang-format
.clang-format-2
.clang-format-4
.gitignore
CleanSpec.mk
METADATA
MODULE_LICENSE_APACHE2
OWNERS
PREUPLOAD.cfg
rustfmt.toml