1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Fix static object destructors being called on gpu selection with X11

(cherry picked from commit 5860f81c18)
This commit is contained in:
Abdulrahman Al Zeidi
2022-11-07 09:27:24 +00:00
committed by Rémi Verschelde
parent d7f6cc26d2
commit 5ada214c51

View File

@@ -203,7 +203,10 @@ int detect_prime() {
print_verbose("Couldn't write vendor/renderer string."); print_verbose("Couldn't write vendor/renderer string.");
} }
close(fdset[1]); close(fdset[1]);
exit(0);
// The function quick_exit() is used because exit() will call destructors on static objects copied by fork().
// These objects will be freed anyway when the process finishes execution.
quick_exit(0);
} }
} }