diff options
-rw-r--r-- | lib/internal/cluster/master.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/internal/cluster/master.js b/lib/internal/cluster/master.js index af421a0418..b20a27c5ee 100644 --- a/lib/internal/cluster/master.js +++ b/lib/internal/cluster/master.js @@ -70,18 +70,8 @@ cluster.setupMaster = function(options) { assert(schedulingPolicy === SCHED_NONE || schedulingPolicy === SCHED_RR, `Bad cluster.schedulingPolicy: ${schedulingPolicy}`); - const hasDebugArg = process.execArgv.some((argv) => { - return /^(--debug|--debug-brk)(=\d+)?$/.test(argv); - }); - process.nextTick(setupSettingsNT, settings); - // Send debug signal only if not started in debug mode, this helps a lot - // on windows, because RegisterDebugHandler is not called when node starts - // with --debug.* arg. - if (hasDebugArg) - return; - process.on('internalMessage', (message) => { if (message.cmd !== 'NODE_DEBUG_ENABLED') return; |