Skip to content

Commit e55c0db

Browse files
committed
Make btest-bg-wait more responsive
Sleep 10 msec instead of 1 second to check for process termination to make detecting process termination a bit more timely.
1 parent 9302f28 commit e55c0db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

btest-bg-wait

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [ $# != 1 ]; then
2525
exit 1
2626
fi
2727

28-
timeout=$1
28+
timeout=$(($1 * 100))
2929

3030
procs=$(cat .bgprocs)
3131

@@ -122,7 +122,7 @@ while true; do
122122
exit 1
123123
fi
124124

125-
sleep 1
125+
sleep 0.01
126126
done
127127

128128
trap - EXIT

0 commit comments

Comments
 (0)