Raise child process error signal if odin run child gets terminated.

Previously one would get a nice `$ pid segmentation fault (core dumped) odin run .` message,
but this behaviour was (probably unintentionally) removed in #6848.
This commit is contained in:
Franz
2026-06-22 12:32:39 +02:00
parent 577889383d
commit 5dd0041eb2

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;