mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: disable SIGUSR1 when --inspect is disabled (#33188)
This commit is contained in:
@@ -478,6 +478,12 @@ node::Environment* NodeBindings::CreateEnvironment(
|
||||
node::EnvironmentFlags::kNoInitializeInspector;
|
||||
}
|
||||
|
||||
if (!electron::fuses::IsNodeCliInspectEnabled()) {
|
||||
// If --inspect and friends are disabled we also shouldn't listen for
|
||||
// SIGUSR1
|
||||
flags |= node::EnvironmentFlags::kNoStartDebugSignalHandler;
|
||||
}
|
||||
|
||||
v8::TryCatch try_catch(isolate);
|
||||
env = node::CreateEnvironment(
|
||||
isolate_data_, context, args, exec_args,
|
||||
|
||||
Reference in New Issue
Block a user