From 0655f2df9f1605916074d5b882cc01f40854f5f2 Mon Sep 17 00:00:00 2001 From: ale5000 <15793015+ale5000-git@users.noreply.github.com> Date: Sun, 27 Oct 2024 01:30:15 +0200 Subject: [PATCH] Update bits-info.sh --- tools/bits-info.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/bits-info.sh b/tools/bits-info.sh index d0606115..6f0b5473 100755 --- a/tools/bits-info.sh +++ b/tools/bits-info.sh @@ -914,15 +914,14 @@ detect_bits_of_cut_b_timeout() while test "$((_sec_limit = _sec_limit - 1))" -ge 0; do sleep 1 if kill 2> /dev/null -0 "${_pid}"; then - echo 1>&2 'Still running' + : # Still running else wait "${_pid}" || return "${?}" return '0' fi done - 1>&2 kill -9 "${_pid}" - 1>&2 echo $? + kill 2> /dev/null -9 "${_pid}" || : return 124 }