(args)
| 26 | } |
| 27 | |
| 28 | async function executeChildProcess(args) { |
| 29 | const child = fork(__filename, args); |
| 30 | // Send SIGINTs as SIGKILLs, which are not ignored |
| 31 | process.on('SIGINT', () => { |
| 32 | child.kill('SIGKILL'); |
| 33 | process.exit(130); |
| 34 | }); |
| 35 | return new Promise((resolve, reject) => child.on('error', reject).on('close', resolve)); |
| 36 | } |
| 37 | |
| 38 | function printHelp() { |
| 39 | console.log([ |