Merge pull request #584 from coderaiser/patch-1

Fix demo: wrong pid on windows #567
This commit is contained in:
Daniel Imms 2017-03-03 14:38:55 -08:00 committed by GitHub
commit c9ad3a595a

View File

@ -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];