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: Improve look mode cursor info.
[plomrogue]
/
roguelike
diff --git
a/roguelike
b/roguelike
index cad9b707f66e311ad905ee635261f69ba249a46b..b997a9f4b138cdae03fbda0e72474c70a8ff45bc 100755
(executable)
--- a/
roguelike
+++ b/
roguelike
@@
-1,8
+1,16
@@
#!/bin/sh
# Wrapper to the script so that its suppressed server messages get read on exit.
#!/bin/sh
# Wrapper to the script so that its suppressed server messages get read on exit.
-# and server_run/ get's deleted in any case.
./start_server_client_union.sh "$@"
./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.
rm -rf ./server_run/
# For some reason, mere sync won't ensure a log is written out, so wait a while.