mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
timeout games after five minutes no matter what
This commit is contained in:
parent
b15665e041
commit
d29b048504
1 changed files with 6 additions and 0 deletions
|
@ -201,6 +201,7 @@ do_one() {
|
||||||
done
|
done
|
||||||
|
|
||||||
test -n "$VERBOSE" && echo "watching:$PIDS"
|
test -n "$VERBOSE" && echo "watching:$PIDS"
|
||||||
|
END_TIME=$(($(date +%s) + 300)) # five minute timeout
|
||||||
while [ -d /tmp/$RUN_NAME -a -n "$PIDS" ]; do
|
while [ -d /tmp/$RUN_NAME -a -n "$PIDS" ]; do
|
||||||
sleep 10
|
sleep 10
|
||||||
for PID in $PIDS; do
|
for PID in $PIDS; do
|
||||||
|
@ -209,6 +210,11 @@ do_one() {
|
||||||
PIDS=""
|
PIDS=""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ $(date +%s) -ge $END_TIME ]; then
|
||||||
|
echo "killing $PIDS because out of time"
|
||||||
|
kill $PIDS 2>/dev/null
|
||||||
|
break
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
check_logs $COOKIE
|
check_logs $COOKIE
|
||||||
|
|
Loading…
Reference in a new issue