Welcome to mirror list, hosted at ThFree Co, Russian Federation.

parent-process-nonpersistent-fork.js « fixtures « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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();