mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-09 20:39:37 +01:00
Fix static object destructors being called on gpu selection with X11
(cherry picked from commit 5860f81c18a2de8b3f38d5a58946939b5cc81425)
This commit is contained in:
parent
1c5271b0e3
commit
238cd5d5bf
@ -203,7 +203,10 @@ 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]);
|
||||||
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 New Issue
Block a user