Skip to content

Commit

Permalink
Revert "Fix detected leaks/heap-use-after-free by AddressSanitizer at…
Browse files Browse the repository at this point in the history
… startup"

This reverts commit 3f94ea6.

It broke `detect_prime`'s main purpose which is to detect GPUs and use
the best one available.
  • Loading branch information
akien-mga committed Mar 15, 2022
1 parent a6762a3 commit 6c2bd12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/x11/detect_prime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down Expand Up @@ -203,7 +203,7 @@ int detect_prime() {
print_verbose("Couldn't write vendor/renderer string.");
}
close(fdset[1]);
raise(SIGINT);
exit(0);
}
}

Expand Down

0 comments on commit 6c2bd12

Please sign in to comment.