MCPcopy Create free account
hub / github.com/nodejs/node / getSigintWatchdog

Function getSigintWatchdog

lib/internal/util/trace_sigint.js:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8let sigintWatchdog;
9function getSigintWatchdog() {
10 if (!sigintWatchdog) {
11 const { SigintWatchdog } = require('internal/watchdog');
12 sigintWatchdog = new SigintWatchdog();
13 }
14 return sigintWatchdog;
15}
16
17function setTraceSigInt(enable) {
18 if (!isMainThread)

Callers 1

setTraceSigIntFunction · 0.85

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected