From 17138b08054ba418cb4b99f8c01425970cdc714d Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Mon, 20 Oct 2014 15:02:54 -0400 Subject: [PATCH] Remove an inaccurate comment and add a potentially helpful comment. --- tools/server/shell.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/server/shell.js b/tools/server/shell.js index f09ccea68d..4ccf3198b9 100644 --- a/tools/server/shell.js +++ b/tools/server/shell.js @@ -62,8 +62,6 @@ function onConnection(socket) { }); } -// The child process calls this function when it receives the SHELLSTART -// command from the parent process (via stdin). function startREPL(options) { if (! options.output.columns) { // The REPL's tab completion logic assumes process.stdout is a TTY, @@ -264,6 +262,8 @@ exports.connect = function(appDir) { reconnect.count = 0; connected = true; + // Sending a JSON-stringified options object (even just an empty + // object) over the socket is required to start the REPL session. sock.write(JSON.stringify({ terminal: !process.env.EMACS }));