From c3d7c4d41c052525904da4ad55a6a196c8fe5129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 15 Mar 2022 09:30:28 +0100 Subject: [PATCH] Revert "Fix detected leaks/heap-use-after-free by AddressSanitizer at startup" This reverts commit 0ae6150d8eed297497544c007405720c7307792a. It broke `detect_prime`'s main purpose which is to detect GPUs and use the best one available. --- platform/x11/detect_prime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/x11/detect_prime.cpp b/platform/x11/detect_prime.cpp index e2a0307a3dc..27fe39e9c43 100644 --- a/platform/x11/detect_prime.cpp +++ b/platform/x11/detect_prime.cpp @@ -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); } }