comparison rlgterm.js @ 27:83f9a799a374

rlgwebd.js: read commands from the console The RLG-Web server can now be controlled with commands sent to stdin. Currently, the only one implemented is "quit". Some improvements to the shutdown process were also made.
author John "Elwin" Edwards <elwin@sdf.org>
date Mon, 04 Jun 2012 14:21:41 -0700
parents 51d59a0e3b20
children f15efa4818b4
comparison
equal deleted inserted replaced
26:9b58f8d3ea70 27:83f9a799a374
130 return null; 130 return null;
131 } 131 }
132 if (!msgDict.t) 132 if (!msgDict.t)
133 return null; 133 return null;
134 else if (msgDict.t == "E") { 134 else if (msgDict.t == "E") {
135 if (msgDict.c == 1) { 135 if (msgDict.c == 1 || msgDict.c == 6) {
136 logout(); 136 logout();
137 } 137 }
138 debug(1, "Server error: " + msgDict.s); 138 debug(1, "Server error: " + msgDict.s);
139 } 139 }
140 else if (msgDict.t == "n") { 140 else if (msgDict.t == "n") {