mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
silence skipped clean-up inside the container (#2608)
This commit is contained in:
parent
16759efd37
commit
96f2015fbf
@ -73,7 +73,7 @@ function kill_with_kids() {
|
|||||||
# kill a process and all its children (by pid)! return no error.
|
# kill a process and all its children (by pid)! return no error.
|
||||||
|
|
||||||
if [[ -n $1 ]]; then
|
if [[ -n $1 ]]; then
|
||||||
mapfile -t CHILDREN_PID_LIST < <(ps --ppid "$1" -o pid= || true)
|
mapfile -t CHILDREN_PID_LIST < <(ps --ppid "$1" -o pid= &>/dev/null || true)
|
||||||
for child_pid in "${CHILDREN_PID_LIST[@]}"; do
|
for child_pid in "${CHILDREN_PID_LIST[@]}"; do
|
||||||
kill "$child_pid" &>/dev/null || true
|
kill "$child_pid" &>/dev/null || true
|
||||||
wait "$child_pid" &>/dev/null || true
|
wait "$child_pid" &>/dev/null || true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user