From f3689a58065fddd860c7b99666d2a0d22bb048fd Mon Sep 17 00:00:00 2001 From: Nicola <73220426+Zerodya@users.noreply.github.com> Date: Tue, 13 Feb 2024 11:46:40 +0100 Subject: [PATCH] fix: PIDS not correctly stopped after sanitization --- hyprfreeze | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyprfreeze b/hyprfreeze index 3823f4f..39e3d10 100644 --- a/hyprfreeze +++ b/hyprfreeze @@ -47,10 +47,10 @@ function toggleFreeze() { # Suspend or resume processes if [[ "$(ps -o state= "$PID")" == T ]]; then debugPrint "Resuming processes..." - kill -CONT "$PIDS" 2>/dev/null && echo "Resumed $(ps -p "$PID" -o comm= 2>/dev/null) (PID $PID)" || exit 1 + kill -CONT $PIDS 2>/dev/null && echo "Resumed $(ps -p "$PID" -o comm= 2>/dev/null) (PID $PID)" || exit 1 else debugPrint "Suspending processes..." - kill -STOP "$PIDS" 2>/dev/null && echo "Suspended $(ps -p "$PID" -o comm= 2>/dev/null) (PID $PID)" || exit 1 + kill -STOP $PIDS 2>/dev/null && echo "Suspended $(ps -p "$PID" -o comm= 2>/dev/null) (PID $PID)" || exit 1 fi }