Pārlūkot izejas kodu

[macOS] Fix crash on failed `fork`.

bruvzg 5 gadi atpakaļ
vecāks
revīzija
d6e3a8a137
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      drivers/unix/os_unix.cpp

+ 1 - 1
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) {