This commit is contained in:
Nicola 2024-02-10 23:23:45 +01:00 committed by GitHub
parent 770582b946
commit 086017724d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,7 @@ function toggleFreeze() {
# Suspend or resume processes # Suspend or resume processes
if [[ "$(ps -o state= $PID)" == T ]]; then if [[ "$(ps -o state= $PID)" == T ]]; then
debugPrint "Resuming processes..." 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 else
debugPrint "Suspending processes..." 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