summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-08-11 17:28:08 +0200
committerGitHub <noreply@github.com>2020-08-11 17:28:08 +0200
commit5ee0af0dcd3cd2532aee3a3f4a81c9d5afa6e24f (patch)
treefb71e8718d15a006d9bc57d40e86f369a844ccb5
parentc2003ffb53e516c3113259fd978d7e96380b1937 (diff)
parentd6e3a8a1373e22011e657d6265dd9d033d7db7b2 (diff)
Merge pull request #41188 from bruvzg/fix_mac_fork_crash
[macOS] Fix crash on failed `fork`.
-rw-r--r--drivers/unix/os_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp
index 9a5fc6d1a4..3c212cadb8 100644
--- a/drivers/unix/os_unix.cpp
+++ b/drivers/unix/os_unix.cpp
@@ -323,7 +323,7 @@ Error OS_Unix::execute(const String &p_path, const List<String> &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) {