child_process: exit spawnSync with null on signal
This commit sets the spawnSync()
exit code to null
when the child is killed via signal. This brings the behavior more in sync with spawn()
.
Fixes: https://github.com/nodejs/node/issues/11284
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
child_process