Fix static object destructors being called on gpu selection with X11
This commit is contained in:
parent
f814e15c7f
commit
5860f81c18
1 changed files with 4 additions and 1 deletions
|
@ -208,7 +208,10 @@ int detect_prime() {
|
|||
print_verbose("Couldn't write vendor/renderer string.");
|
||||
}
|
||||
close(fdset[1]);
|
||||
exit(0);
|
||||
|
||||
// The function quick_exit() is used because exit() will call destructors on static objects copied by fork().
|
||||
// These objects will be freed anyway when the process finishes execution.
|
||||
quick_exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue