test: prevent workers outliving parent
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Waiting for confirmation on CI, which was leaking child processes.
Affected core subsystem(s)
test
Description of change
test-child-process-pass-fd.js parent can exit with an error on failure to fork, in which case it will leak child processes. Limit child lifetime to that of parent.
Fix #9255 (closed)
/to @mhdawson