Revert "Fix detected leaks/heap-use-after-free by AddressSanitizer at startup"

This reverts commit 0ae6150d8e.

It broke `detect_prime`'s main purpose which is to detect GPUs and use
the best one available.
This commit is contained in:
Rémi Verschelde 2022-03-15 09:30:28 +01:00
parent 0ae6150d8e
commit c3d7c4d41c

View File

@ -175,7 +175,7 @@ int detect_prime() {
close(fdset[0]);
} else {
// In child, killing this process will not quit the engine.
// In child, exit() here will not quit the engine.
char string[201];
@ -203,7 +203,7 @@ int detect_prime() {
print_verbose("Couldn't write vendor/renderer string.");
}
close(fdset[1]);
raise(SIGINT);
exit(0);
}
}