diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-08-11 17:45:09 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-08-11 17:45:09 +0300 |
commit | d6e3a8a1373e22011e657d6265dd9d033d7db7b2 (patch) | |
tree | 60b6339f838c9358296ed65213540938e024d484 | |
parent | e2f4510a271a688c3958000073e7953cc3849f0e (diff) |
[macOS] Fix crash on failed `fork`.
-rw-r--r-- | drivers/unix/os_unix.cpp | 2 |
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) { |