MCPcopy
hub / github.com/QwikDev/qwik / promisifiedTreeKill

Function promisifiedTreeKill

e2e/qwik-cli-e2e/utils/index.ts:162–172  ·  view source on GitHub ↗
(pid: number, signal: string)

Source from the content-addressed store, hash-verified

160const _promisifiedTreeKill = promisify(treeKill) as (pid: number, signal: string) => Promise<void>;
161
162export const promisifiedTreeKill = async (pid: number, signal: string) => {
163 try {
164 return await _promisifiedTreeKill(pid, signal);
165 } catch (error) {
166 // Don't treat process termination failures as test failures
167 // This is especially important on Windows where processes may already be gone
168 // or may not be properly terminated with tree-kill
169 log(`Process ${pid} could not be killed, but continuing: ${error.message}`);
170 return Promise.resolve();
171 }
172};
173
174export async function killAllRegisteredProcesses() {
175 const pIds = (global?.pIds as number[]) ?? [];

Callers 2

serve.spec.tsFile · 0.90

Calls 2

logFunction · 0.70
resolveMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…