Skip to content

child_process: setup stdio on error when possible

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/26852 into master

As more spawn() errors are classified as runtime errors, it's no longer appropriate to only check UV_ENOENT when determining if stdio can be setup. This commit reverses the check to look for EMFILE and ENFILE specifically.

Fixes: https://github.com/nodejs/node/issues/26852

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading