home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re-wrote large parts of the server client architecture. No more fifo.
[plomrogue]
/
roguelike
diff --git
a/roguelike
b/roguelike
index ae3fd75d9d69d09130321b31fb4f1026bb8f62fc..3ea498d6478814146481e50f33bd3cc7428673d9 100755
(executable)
--- a/
roguelike
+++ b/
roguelike
@@
-10,20
+10,20
@@
set -e
sleep 0.01
# The client should not start if the server is not running. (If the server was
sleep 0.01
# The client should not start if the server is not running. (If the server was
-# running in the foreround, any error exit of it so far would be caught by "set
+# running in the fore
g
round, any error exit of it so far would be caught by "set
# -e" above. But "set -e" is blind to error codes generated in the background.)
kill -0 $! 2> /dev/null
# -e" above. But "set -e" is blind to error codes generated in the background.)
kill -0 $! 2> /dev/null
-# Give server some time (max. 10 seconds) to generate its
out
file.
+# Give server some time (max. 10 seconds) to generate its
worldstate
file.
i=0
i=0
-while [ ! -e server/
out
] && [ $i -le 1000 ]
+while [ ! -e server/
worldstate
] && [ $i -le 1000 ]
do
sleep 0.01
i=`expr $i + 1`
done
do
sleep 0.01
i=`expr $i + 1`
done
-if [ ! -e server/
out
]
+if [ ! -e server/
worldstate
]
then
then
- echo "Server failed generating
out
file within given time limit."
+ echo "Server failed generating
worldstate
file within given time limit."
false
fi
false
fi