소스 검색

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

This reverts commit 3f94ea62716ca9360b470a1711d58631021ccaed.

It broke `detect_prime`'s main purpose which is to detect GPUs and use
the best one available.
Rémi Verschelde 3 년 전
부모
커밋
6c2bd12031
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      platform/x11/detect_prime.cpp

+ 2 - 2
platform/x11/detect_prime.cpp

@@ -175,7 +175,7 @@ int detect_prime() {
 			close(fdset[0]);
 			close(fdset[0]);
 
 
 		} else {
 		} else {
-			// In child, killing this process will not quit the engine.
+			// In child, exit() here will not quit the engine.
 
 
 			char string[201];
 			char string[201];
 
 
@@ -203,7 +203,7 @@ 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]);
-			raise(SIGINT);
+			exit(0);
 		}
 		}
 	}
 	}