We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS: Distributor ID: Ubuntu
OS version: Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy
node-pty version: 1.0.0
After spawning two terminals and closing the first, the number of terminals used by the system does not decrease.
sudo /sbin/sysctl -a | grep kernel.pty # or ls -al /dev/pts | wc -l
Code to reproduce
import * as os from 'node:os' import * as pty from 'node-pty' function runTestShell() { const ptyProcess = pty.spawn('bash', [], { name: 'xterm-color', cols: 80, rows: 30 }) ptyProcess.onData((data) => { process.stdout.write(data) }) ptyProcess.write('tty\n') return ptyProcess } const p1 = runTestShell() const p2 = runTestShell() setTimeout(() => { console.log('destroy!') p1.destroy() }, 5000)
Ways to check.
sudo /sbin/sysctl -a | grep kernel.pty.nr
p1
The text was updated successfully, but these errors were encountered:
/duplicate #657
Sorry, something went wrong.
No branches or pull requests
Environment details
OS:
Distributor ID: Ubuntu
OS version:
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
node-pty version:
1.0.0
Issue description
After spawning two terminals and closing the first, the number of terminals used by the system does not decrease.
Code to reproduce
Ways to check.
sudo /sbin/sysctl -a | grep kernel.pty.nr
p1
p1
The text was updated successfully, but these errors were encountered: