mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-04 00:47:23 +00:00
properly clean up posix_spawn_file_actions
This commit is contained in:
parent
b76930b0bd
commit
caab92375d
@ -122,6 +122,11 @@ void StartGame(std::string Dir) {
|
|||||||
error("Game Closed! launcher closing soon");
|
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));
|
std::this_thread::sleep_for(std::chrono::seconds(5));
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user