microsoft / node-pty

Fork pseudoterminals in Node.JS
Other
1.46k stars 235 forks source link

Use posix_spawn on UNIX #486

Closed Eugeny closed 2 years ago

Eugeny commented 3 years ago

Fixes #476

This conditionally uses posix_spawn and falls back to fork when either CWD or U/GID are set but not supported by the posix_spawn implementation.

The end of the diff looks flaky, but there are no changes to the forkpty execution path.