nodejs-mozilla/test/fixtures/parent-process-nonpersisten...

13 lines
235 B
JavaScript

const fork = require('child_process').fork;
const path = require('path');
const child = fork(
path.join(__dirname, 'child-process-persistent.js'),
[],
{ detached: true, stdio: 'ignore' }
);
console.log(child.pid);
child.unref();