node-pty icon indicating copy to clipboard operation
node-pty copied to clipboard

spawn-helper hangs when nofile limit is large

Open pandada8 opened this issue 2 years ago • 0 comments

Environment details

  • OS: Linux
  • OS version: 6.1.9-arch1-1
  • node-pty version: 0.11.0-beta27

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 ?

pandada8 avatar Feb 04 '23 11:02 pandada8