• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2const spawn = require('child_process').spawn,
3    path = require('path'),
4    childPath = path.join(__dirname, 'child-process-persistent.js');
5
6var child = spawn(process.execPath, [ childPath ], {
7  detached: true,
8  stdio: 'ignore'
9});
10
11console.log(child.pid);
12
13child.unref();
14