properly clean up posix_spawn_file_actions

This commit is contained in:
Lion Kortlepel 2024-06-28 15:40:50 +02:00
parent b76930b0bd
commit caab92375d
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -122,6 +122,11 @@ void StartGame(std::string Dir) {
error("Game Closed! launcher closing soon");
}
status = posix_spawn_file_actions_destroy(&file_actions);
if (status != 0) {
warn(std::string("posix_spawn_file_actions_destroy failed: ") + std::strerror(errno));
}
std::this_thread::sleep_for(std::chrono::seconds(5));
exit(2);
}