fix: disable SIGUSR1 when --inspect is disabled (#33188)
This commit is contained in:
parent
956406a193
commit
81318f0acc
3 changed files with 76 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue