xref: /third_party/node/test/fixtures/cluster-preload-test.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/
11cb0ef41Sopenharmony_ciconst cluster = require('cluster');
21cb0ef41Sopenharmony_ciif (cluster.isPrimary) {
31cb0ef41Sopenharmony_ci  cluster.fork(); // one child
41cb0ef41Sopenharmony_ci  cluster.on('exit', function(worker, code, signal) {
51cb0ef41Sopenharmony_ci    console.log(`worker terminated with code ${code}`);
61cb0ef41Sopenharmony_ci  });
71cb0ef41Sopenharmony_ci}
8

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