MCPcopy
hub / github.com/microsoft/playwright / onExit

Function onExit

tests/components/test-all.spec.js:56–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56function onExit() {
57 if (activeChild) {
58 try {
59 if (activeChild.exitCode !== null || activeChild.signalCode !== null)
60 return;
61
62 if (isWindows) {
63 execSync(`taskkill /pid ${activeChild.pid} /T /F`, { stdio: 'ignore' });
64 } else {
65 process.kill(-activeChild.pid, 'SIGKILL');
66 }
67 } finally {
68 activeChild = undefined;
69 }
70 }
71}

Callers 5

ensureCleanupFunction · 0.85
test-all.spec.jsFile · 0.85
processIfFunction · 0.85
processForFunction · 0.85

Calls 1

killMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…