Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-11-29 10:57:30 +00:00
parent 89a2e868e3
commit 3fce693bf6
+2 -2
View File
@@ -311,11 +311,11 @@ readonly -f nullexec
anywait() {
declare counter timeout
var counter = 0
var timeout = "$2"
var timeout = $(( $2 * 10 )) # We sleep for 0.1, but the timeout is given in seconds.
while nullexec kill -0 "$1"; do
timeout && {
(( counter >= (timeout*10) )) && return 1
(( counter >= timeout )) && return 1
counter++
}