positive return
This commit is contained in:
parent
5c42584931
commit
81e0677015
@ -2,4 +2,5 @@ function g_kill_all_background_jobs {
|
|||||||
local g_pids
|
local g_pids
|
||||||
readarray g_pids < <(jobs -p)
|
readarray g_pids < <(jobs -p)
|
||||||
[ -n "${g_pids[0]}" ] && kill -9 ${g_pids[*]} >/dev/null 2>&1
|
[ -n "${g_pids[0]}" ] && kill -9 ${g_pids[*]} >/dev/null 2>&1
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user