stop killing docker process

pull/15100/head
Steven Powell 2022-10-10 15:14:34 -07:00
parent e1a5442b1a
commit da5b9111f2
1 changed files with 7 additions and 3 deletions

View File

@ -270,10 +270,14 @@ function cleanup_procs() {
# cleaning up stale hyperkits
if type -P hyperkit; then
for pid in $(pgrep hyperkit); do
info=$(ps -f -p "$pid")
if [[ $info == *"com.docker.hyperkit"* ]]; then
continue
fi
echo "Killing stale hyperkit $pid"
ps -f -p $pid || true
kill $pid || true
kill -9 $pid || true
echo "$info" || true
kill "$pid" || true
kill -9 "$pid" || true
done
fi