Mercurial > hg > rlgwebd
view rlgwebd @ 174:dc12ba30d559
Fix further crashes when following dgamelaunch games.
The crashes apparently resulted from reading a ttyrec header and
then trying to read the data chunk before dgamelaunch produced it.
When the data chunk did become available, it would be read by the
header function.
The simplest solution was to store the position for reading the
ttyrec file in the DGLSession, and to leave it unchanged if anything
unexpected occurs when reading.
author | John "Elwin" Edwards |
---|---|
date | Mon, 12 Jan 2015 17:10:35 +0000 |
parents | 1a156a7746a7 |
children | 5483d413a45b |
line wrap: on
line source
#!/bin/sh NODE_PATH=/usr/lib/node_modules LOGFILE=/var/local/rlgwebd/log CTLSOCKET=/var/local/rlgwebd/ctl RLGWEBDJS=./rlgwebd.js export NODE_PATH if [ $UID != 0 ] then echo "$0 needs to run as root." >&2 exit 1 fi if [ $# -gt 0 ] && [ $1 = stop ] then socat "EXEC:echo quit" "$CTLSOCKET" else # Start setsid node "$RLGWEBDJS" </dev/null &>>$LOGFILE & fi exit