Browse Source

doc: add missing property in cluster example

`Cluster.setupMaster(options)` Options object was missing an `args`
property on the example.

PR-URL: https://github.com/nodejs/node/pull/5305
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
process-exit-stdio-flushing
Rafael Cepeda 9 years ago
committed by Roman Reiss
parent
commit
9894c026f5
  1. 1
      doc/api/cluster.markdown

1
doc/api/cluster.markdown

@ -642,6 +642,7 @@ cluster.setupMaster({
});
cluster.fork(); // https worker
cluster.setupMaster({
exec: 'worker.js',
args: ['--use', 'http']
});
cluster.fork(); // http worker

Loading…
Cancel
Save