From a8471914500efba43ce19ad2c5df991e15202501 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Sun, 15 Jul 2012 21:03:36 -0700 Subject: [PATCH] RLG-Web: fix lockfile mixup. Put the terminal dimensions into the lockfile in the proper order. --- rlgwebd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rlgwebd.js b/rlgwebd.js index fee0c8e..90e2097 100755 --- a/rlgwebd.js +++ b/rlgwebd.js @@ -124,7 +124,7 @@ function TermSession(game, lkey, dims, handlers) { var ts = timestamp(); var progressdir = "/dgldir/inprogress-" + this.game.uname; this.lock = path.join(progressdir, this.pname + ":node:" + ts + ".ttyrec"); - var lmsg = this.term.pid.toString() + '\n' + this.w + '\n' + this.h + '\n'; + var lmsg = this.term.pid.toString() + '\n' + this.h + '\n' + this.w + '\n'; fs.writeFile(this.lock, lmsg, "utf8"); var ttyrec = path.join("/dgldir/ttyrec", this.pname, this.game.uname, ts + ".ttyrec");