This commit is contained in:
olli 2024-07-02 22:39:02 +02:00
parent fd8ad9799b
commit aac91e9a55

View File

@ -13,7 +13,7 @@ function g_kill_all_background_jobs {
local g_pid
for g_pid in "${g_pids[@]}"
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
done
fi