node/lib/internal/cluster
Sameer Srivastava 926214aefe
cluster: add support for NODE_OPTIONS="--inspect"
When using cluster and --inspect as cli argument it is correctly
handled and each worker will use a different port, this was
fixed by #13619. But when env var NODE_OPTIONS="--inspect"
is set this logic doesn't apply and the workers will fail as they
try to attach to the same port.

Fixes: https://github.com/nodejs/node/issues/19026

PR-URL: https://github.com/nodejs/node/pull/19165
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2018-03-24 11:42:37 +01:00
..
child.js cluster: resolve relative unix socket paths 2018-01-30 10:25:14 -06:00
master.js cluster: add support for NODE_OPTIONS="--inspect" 2018-03-24 11:42:37 +01:00
round_robin_handle.js uv: improvements to process.binding('uv') 2017-08-23 10:51:15 -07:00
shared_handle.js
utils.js
worker.js