# HG changeset patch # User John "Elwin" Edwards # Date 1336342933 25200 # Node ID bfdc775a574fcfc23c7a0370ca7c862fab44ee3f # Parent 98bf7c94c954344e6fbd506d1215f5d464eabcd0 webtty.js: remove tty-module code. diff -r 98bf7c94c954 -r bfdc775a574f webtty.js --- 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);