Skip to content

Commit 3023207

Browse files
committed
fix(run): treat SIGINT shutdown as normal interruption before crash detection
1 parent eb60246 commit 3023207

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/commands/run/RunScript.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,17 @@ namespace vix::commands::RunCommand::detail
680680
runtimeLog += err;
681681
}
682682

683+
const bool interruptedBySigint =
684+
is_sigint_exit_code(runCode) ||
685+
(rr.terminatedBySignal && rr.termSignal == SIGINT) ||
686+
log_looks_like_interrupt(runtimeLog);
687+
688+
if (interruptedBySigint)
689+
{
690+
hint("ℹ Server interrupted by user (SIGINT).");
691+
return 0;
692+
}
693+
683694
const bool looksSanOrUb =
684695
!runtimeLog.empty() && log_looks_like_sanitizer_or_ub(runtimeLog);
685696

0 commit comments

Comments
 (0)