MCPcopy Index your code
hub / github.com/darkreader/darkreader / executeChildProcess

Function executeChildProcess

tasks/cli.js:28–36  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

26}
27
28async 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
38function printHelp() {
39 console.log([

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected