summaryrefslogtreecommitdiff
path: root/test/fixtures/parent-process-nonpersistent-fork.js
blob: 49c0a1d1838135e4c2e8474edf40b45eceb3fe2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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();