summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-04-28 22:53:42 -0700
committerRich Trott <rtrott@gmail.com>2017-05-02 14:58:22 -0700
commitdc3bbb45a7a17c97dbe2260e49baf725c53a7a79 (patch)
tree503c18f56749c3b6a6e3b9d49d18a8d329ea7420
parent9d723e85fb5845f9f32d0c529af20a10455bcd8f (diff)
downloadnode-new-dc3bbb45a7a17c97dbe2260e49baf725c53a7a79.tar.gz
cluster: remove debug arg handling
--debug and --debug-brk are no longer valid flags so remove special handling for them in the cluster module. Even if they are restored, they will be aliases for inspect and will not use the legacy debug protocol, so the special handling will not be needed. PR-URL: https://github.com/nodejs/node/pull/12738 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
-rw-r--r--lib/internal/cluster/master.js10
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;