summaryrefslogtreecommitdiff
path: root/libcutils/socket_local_server_unix.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-05-04 11:32:36 -0700
committerTom Cherry <tomcherry@google.com>2017-05-04 12:33:19 -0700
commit33838b1156cd1a5f8eec94756bee9e030a3dd2eb (patch)
tree48d12cd98f2b6890d816399de7348b9272a656c9 /libcutils/socket_local_server_unix.cpp
parent20514c4411923e03df4a5057ef43bf9716983e14 (diff)
init: change kill order and fix error reporting in KillProcessGroup()
First kill the process group before killing the cgroup to catch the hopeful case that killing the cgroup becomes a no-op as all of its processes have already been killed. Do not report an error if kill fails due to ESRCH, as this happens often when reaping processes due to the order in which we call waitpid() and kill(). Do not call killProcessGroup in libprocessgroup if we have already successfully killed and removed a process group. Bug: 36661364 Bug: 36701253 Bug: 37540956 Test: Reboot bullhead Test: Start and stop services Test: Init unit tests Change-Id: I172acf0f8e00189f910f865f4635a7b1782fc7e3
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions