Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix game processes being in a zombie state when exiting #33

Merged
merged 4 commits into from
Aug 19, 2023

Conversation

Refragg
Copy link
Contributor

@Refragg Refragg commented Aug 19, 2023

This fixes the game processes going into a zombie state when they exit on Unix systems.
We weren't properly waiting for their exit so this goes and fixes that.
The thread spawning approach may not be the best, but it works for this and we can think of an other solution if needed at some point.

This patch fixes the issue where the spawned game processes would never be removed from the system process list on Unix systems.
The processes would stay in a zombie state because we weren't waiting for their exit as we should be doing under Unix systems.
The thread spawning code does not actually depend on the auto-splitting feature.
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
-Remove conditional use
-Use of if let to remove the use of unwrap and make code cleaner
@Refragg
Copy link
Contributor Author

Refragg commented Aug 19, 2023

Should be better now, sorry about the little mess ups!

-Rename child to _child for non Unix systems
-Run cargo fmt on the source code
@Refragg Refragg requested a review from CryZe August 19, 2023 17:23
@CryZe CryZe merged commit 925e9ec into LiveSplit:master Aug 19, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants