Skip to content

Commit cf0e626

Browse files
committed
Update process-utils.ts
1 parent decbfce commit cf0e626

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/twig/src/main/lib/process-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export function killProcessTree(pid: number): void {
2323
// If SIGTERM fails (process may have already exited), try SIGKILL
2424
try {
2525
process.kill(-pid, "SIGKILL");
26-
} catch {
27-
// Process group may have already exited
26+
} catch (err) {
27+
log.warn(`Failed to kill process group for PID ${pid}`, err);
2828
}
2929
}
3030
}

0 commit comments

Comments
 (0)