Skip to content

Commit

Permalink
Unref the telemetry consent hit subprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Dec 22, 2023
1 parent c0278d5 commit 308c12b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/hardhat-core/src/internal/cli/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,16 @@ export async function requestTelemetryConsent() {
"report-telemetry-consent.js"
);

spawn(
const subprocess = spawn(
process.execPath,
[reportTelemetryConsentPath, telemetryConsent === true ? "yes" : "no"],
[reportTelemetryConsentPath, telemetryConsent ? "yes" : "no"],
{
detached: true,
stdio: "ignore",
}
);

subprocess.unref();

return telemetryConsent;
}

0 comments on commit 308c12b

Please sign in to comment.