From 5dd0041eb2372abb35527c41cd23f27e65255ee4 Mon Sep 17 00:00:00 2001 From: Franz Date: Mon, 22 Jun 2026 12:32:39 +0200 Subject: [PATCH] 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. --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 89b2654d4..3a72c2a9c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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;