From 9d528a64914d7869bf061875f8862dd039bb0a54 Mon Sep 17 00:00:00 2001 From: Geoffray Levasseur-Brandin Date: Thu, 19 Jun 2025 14:30:38 +0200 Subject: [PATCH] fix kt function --- profile.d/processes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profile.d/processes.sh b/profile.d/processes.sh index 003d52d..f23f252 100644 --- a/profile.d/processes.sh +++ b/profile.d/processes.sh @@ -80,12 +80,12 @@ kt() { [[ -z $1 ]] && echo -e "Usage:\n\tkt [kill_options]" - local parent_pid="$1" children_pids + local parent_pid="$1" shift children_pids=$(pgrep -P "$parent_pid") for pid in $children_pids; do - kill_tree "$pid" "$@" + kt "$pid" "$@" done kill "$@" "$parent_pid" }