Skip to content

Commit dc3bbb4

Browse files
committed
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: #12738 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 9d723e8 commit dc3bbb4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/internal/cluster/master.js

-10
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,8 @@ cluster.setupMaster = function(options) {
7070
assert(schedulingPolicy === SCHED_NONE || schedulingPolicy === SCHED_RR,
7171
`Bad cluster.schedulingPolicy: ${schedulingPolicy}`);
7272

73-
const hasDebugArg = process.execArgv.some((argv) => {
74-
return /^(--debug|--debug-brk)(=\d+)?$/.test(argv);
75-
});
76-
7773
process.nextTick(setupSettingsNT, settings);
7874

79-
// Send debug signal only if not started in debug mode, this helps a lot
80-
// on windows, because RegisterDebugHandler is not called when node starts
81-
// with --debug.* arg.
82-
if (hasDebugArg)
83-
return;
84-
8575
process.on('internalMessage', (message) => {
8676
if (message.cmd !== 'NODE_DEBUG_ENABLED')
8777
return;

0 commit comments

Comments
 (0)