fixes
This commit is contained in:
parent
fd8ad9799b
commit
aac91e9a55
@ -13,7 +13,7 @@ function g_kill_all_background_jobs {
|
|||||||
local g_pid
|
local g_pid
|
||||||
for g_pid in "${g_pids[@]}"
|
for g_pid in "${g_pids[@]}"
|
||||||
do
|
do
|
||||||
read g_proc < <(tr "\0" " " < /proc/${f_pid}/cmdline)
|
read g_proc < <(tr "\0" " " < /proc/${g_pid}/cmdline)
|
||||||
[ "$g_proc" = "$g_cmdline" ] && kill -9 $g_pid >/dev/null 2>&1
|
[ "$g_proc" = "$g_cmdline" ] && kill -9 $g_pid >/dev/null 2>&1
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user