node/lib/internal/cluster
Sameer Srivastava 9b34ea6161 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-21 15:27:54 -04:00
..
child.js cluster: resolve relative unix socket paths 2018-01-17 11:55:49 +08:00
master.js cluster: add support for NODE_OPTIONS="--inspect" 2018-03-21 15:27:54 -04:00
round_robin_handle.js uv: improvements to process.binding('uv') 2017-08-23 10:51:15 -07:00
shared_handle.js cluster: remove obsolete todo 2017-06-22 16:07:51 -04:00
utils.js cluster: refactor module into multiple files 2017-01-13 17:01:07 -05:00
worker.js cluster: remove deprecated property 2017-06-20 11:48:47 -07:00