xref: /third_party/node/test/fixtures/parent-process-nonpersistent-fork.js (revision 1cb0ef41)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/
11cb0ef41Sopenharmony_ciconst fork = require('child_process').fork;
21cb0ef41Sopenharmony_ciconst path = require('path');
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ciconst child = fork(
51cb0ef41Sopenharmony_ci	path.join(__dirname, 'child-process-persistent.js'),
61cb0ef41Sopenharmony_ci	[],
71cb0ef41Sopenharmony_ci	{ detached: true, stdio: 'ignore' }
81cb0ef41Sopenharmony_ci);
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ciconsole.log(child.pid);
111cb0ef41Sopenharmony_ci
121cb0ef41Sopenharmony_cichild.unref();
13

Indexes created Thu Nov 07 10:32:03 CST 2024