From b0aabf2c03f3f6592df09a8c584b7c5bc37e8803 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Tue, 11 Aug 2020 17:45:09 +0300 Subject: [PATCH] [macOS] Fix crash on failed `fork`. (cherry picked from commit d6e3a8a1373e22011e657d6265dd9d033d7db7b2) --- drivers/unix/os_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index 9a535c4f2eb..a82f19768cb 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -347,7 +347,7 @@ Error OS_Unix::execute(const String &p_path, const List &p_arguments, bo execvp(p_path.utf8().get_data(), &args[0]); // still alive? something failed.. fprintf(stderr, "**ERROR** OS_Unix::execute - Could not create child process while executing: %s\n", p_path.utf8().get_data()); - abort(); + raise(SIGKILL); } if (p_blocking) {