microsoft / node-pty

Fork pseudoterminals in Node.JS
Other
1.42k stars 233 forks source link

spawn-helper hangs when nofile limit is large #578

Open pandada8 opened 1 year ago

pandada8 commented 1 year ago

Environment details

Issue description

spawn-helper seems traversing fd to nofile and close them. When running on a Linux system configured with high nofile limit (in this case, 2147483583), this takes a long time and cause vscode to popup pty host process is unresponsive notifications.

Maybe /proc/self/fd can be used to get all fds to be closed ?