Skip to content

Commit 1e9ec12

Browse files
fix: use gracefulKill in non-verify timeout path
Escalates to SIGKILL after 5s if the child ignores SIGTERM, matching the verify-mode behavior.
1 parent 1673921 commit 1e9ec12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commands/local/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export const runCommand = buildCommand({
257257
if (flags.timeout > 0) {
258258
timeoutId = setTimeout(() => {
259259
logger.warn(`Timeout: killing child after ${flags.timeout}s`);
260-
child.kill("SIGTERM");
260+
gracefulKill(child);
261261
}, flags.timeout * 1000);
262262
}
263263

0 commit comments

Comments
 (0)