MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / teardownSignalsTrap

Function teardownSignalsTrap

lib/utilities/will-interrupt-process.js:144–152  ·  view source on GitHub ↗

* Removes interruption signal listeners and tears down capture-exit * * @method teardownSignalsTrap

()

Source from the content-addressed store, hash-verified

142 * @method teardownSignalsTrap
143 */
144function teardownSignalsTrap() {
145 _process.removeListener('SIGINT', exit);
146 _process.removeListener('SIGTERM', exit);
147 _process.removeListener('message', onMessage);
148
149 if (isWindowsTTY(_process)) {
150 cleanupWindowsSignals(_process);
151 }
152}
153
154/**
155 * Suppresses "Terminate batch job (Y/N)" confirmation on Windows

Callers 1

removeHandlerFunction · 0.85

Calls 2

isWindowsTTYFunction · 0.85
cleanupWindowsSignalsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…