diff --git a/demo/app.js b/demo/app.js index 3439ea9..8637dad 100644 --- a/demo/app.js +++ b/demo/app.js @@ -69,7 +69,7 @@ app.ws('/terminals/:pid', function (ws, req) { term.write(msg); }); ws.on('close', function () { - process.kill(term.pid); + term.kill(); console.log('Closed terminal ' + term.pid); // Clean things up delete terminals[term.pid];