Merge pull request #6870 from Znarf64/raise_signal_on_child_crash

Raise child process error signal if `odin run` child gets terminated.
This commit is contained in:
gingerBill
2026-06-22 12:52:08 +01:00
committed by GitHub

View File

@@ -206,6 +206,9 @@ int run_subprocess(const char *name, const char **args) {
if (WIFEXITED(status)) {
return WEXITSTATUS(status);
} else if (WIFSIGNALED(status)) {
struct rlimit limit = { 0, 0, };
setrlimit(RLIMIT_CORE, &limit);
raise(WTERMSIG(status));
return -1;
} else if (WIFSTOPPED(status)) {
return -1;