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;