positive return

This commit is contained in:
olli 2024-04-04 13:23:40 +02:00
parent 5c42584931
commit 81e0677015

View File

@ -2,4 +2,5 @@ function g_kill_all_background_jobs {
local g_pids
readarray g_pids < <(jobs -p)
[ -n "${g_pids[0]}" ] && kill -9 ${g_pids[*]} >/dev/null 2>&1
return 0
}