changeset 3:bfdc775a574f

webtty.js: remove tty-module code.
author John "Elwin" Edwards <elwin@sdf.org>
date Sun, 06 May 2012 15:22:13 -0700
parents 98bf7c94c954
children ee22eb9ab009
files webtty.js
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/webtty.js	Sun May 06 15:06:32 2012 -0700
+++ b/webtty.js	Sun May 06 15:22:13 2012 -0700
@@ -3,7 +3,6 @@
 var url = require('url');
 var path = require('path');
 var fs = require('fs');
-//var tty = require("tty");
 var child_process = require("child_process");
 
 var serveStaticRoot = "/home/elwin/hk/nodejs/rlg/s/";
@@ -23,13 +22,10 @@
   }
   // Should setsid get set?
   var spawnopts = {"env": childenv, "cwd": process.env["HOME"]};
-  //var pterm = tty.open("/bin/bash");
   this.child = child_process.spawn(ptyhelp, ["bash"], spawnopts);
   var ss = this;
   /* Eventually we'll need to make sure the sessid isn't in use yet. */
   this.sessid = sessid;
-  //this.ptmx = pterm[0];
-  //this.child = pterm[1];
   this.alive = true;
   this.data = [];
   this.child.stdout.on("data", function (buf) {
@@ -74,7 +70,6 @@
     /* Call this when the child is dead. */
     if (this.alive)
       return;
-    //ss.ptmx.destroy();
     /* Give the client a chance to read any leftover data. */
     if (ss.data.length > 0)
       setTimeout(ss.remove, 8000);