1import { mustCall } from '../common/index.mjs';
2import { fork } from 'child_process';
3
4if (process.argv[2] === 'child') {
5  process.disconnect();
6} else {
7  const child = fork(new URL(import.meta.url), ['child']);
8
9  child.on('disconnect', mustCall());
10  child.once('exit', mustCall());
11}
12