blob: 9261b875638e917ef01d453e5708bb3f19795994 [file] [edit]
import { mustCall } from '../common/index.mjs';
import { fork } from 'child_process';
if (process.argv[2] === 'child') {
process.disconnect();
} else {
const child = fork(new URL(import.meta.url), ['child']);
child.on('disconnect', mustCall());
child.once('exit', mustCall());
}