Closed xhcoding closed 2 years ago
var os = require('os'); var pty = require('node-pty'); var shell = os.platform() === 'win32' ? 'powershell' : 'bash'; setInterval(() => { console.log("spawn new process"); var ptyProcess = pty.spawn(shell, [], { name: 'xterm-color', cols: 80, rows: 30 }); ptyProcess.kill(); }, 5000);
After the above code runs for a few minutes :
Should be fixed in https://github.com/microsoft/node-pty/pull/510
Environment details
Issue description
After the above code runs for a few minutes :