fix: unblock supervisor and memory gate failures

This commit is contained in:
Peter Steinberger
2026-03-24 18:38:57 +00:00
parent a97188ceb3
commit 2383107711
3 changed files with 7 additions and 8 deletions

View File

@@ -87,7 +87,7 @@ describe("createChildAdapter", () => {
adapter.kill();
expect(killProcessTreeMock).toHaveBeenCalledWith(4321);
expect(killMock).not.toHaveBeenCalled();
expect(killMock).toHaveBeenCalledWith("SIGKILL");
});
it("uses direct child.kill for non-SIGKILL signals", async () => {

View File

@@ -125,12 +125,11 @@ export async function createChildAdapter(params: {
if (signal === undefined || signal === "SIGKILL") {
if (pid) {
killProcessTree(pid);
} else {
try {
child.kill("SIGKILL");
} catch {
// ignore kill errors
}
}
try {
child.kill("SIGKILL");
} catch {
// ignore kill errors
}
return;
}