Launcher matches and terminates unrelated leila.exe processes #35
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/tshadofr--Leila#35
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@eredetien on GitHub · 2026-12-05 04:57 UTC · original
Problem
In the launcher’s
launch.rs,engine_running()checks only the process image nameleila.exe. Both the launcher and the engine use that name. After the engine exits successfully, the launcher waits while any such process exists, including the launcher itself, so its hidden window may not return.The stop path also invokes
taskkill /F /IM leila.exe, which can terminate other processes with that name, including another launcher instance. This is a risk inferred from the implementation; it was not tested by terminating unrelated processes.Observed
After a gameplay session ended, the engine process was gone while two launcher processes remained. This is consistent with the wait condition, although it does not by itself establish the state of both launcher windows.
Expected
Track only the processes belonging to the launched session, restore the launcher after that session ends, and stop only processes owned by that session. The engine can relaunch itself, including through a delayed helper process, so tracking only the original PID or matching only the executable path is not sufficient for a safe fix.