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

14 lines
279 B
JavaScript

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