Merge pull request #56036 from Rubonnek/fix-startup-leaks-and-use-after-free

This commit is contained in:
Rémi Verschelde 2022-03-13 18:09:55 +01:00 committed by GitHub
commit 3f08b72361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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