child_process: setup stdio on error when possible
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), orvcbuild test
(Windows) passes -
commit message follows commit guidelines