home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TCE: Refactor too-full-to-eat test.
[plomrogue]
/
roguelike
diff --git
a/roguelike
b/roguelike
index b00272187288eed4be40d1bb8df26872623ae831..b997a9f4b138cdae03fbda0e72474c70a8ff45bc 100755
(executable)
--- a/
roguelike
+++ b/
roguelike
@@
-3,6
+3,16
@@
# Wrapper to the script so that its suppressed server messages get read on exit.
./start_server_client_union.sh "$@"
# Wrapper to the script so that its suppressed server messages get read on exit.
./start_server_client_union.sh "$@"
+# Give server up to ten seconds to wind down properly.
+i=0
+while [ -e ./server_run/in ] && [ $i -le 100 ]
+do
+ echo 'QUIT' >> server_run/in
+ sleep 0.1
+ i=`expr $i + 1`
+done
+rm -rf ./server_run/
+
# For some reason, mere sync won't ensure a log is written out, so wait a while.
sync
sleep 0.5
# For some reason, mere sync won't ensure a log is written out, so wait a while.
sync
sleep 0.5