Launcher matches and terminates unrelated leila.exe processes #35

Open
opened 2026-12-05 04:58:29 +00:00 by github-bot · 0 comments
Owner

@⁠eredetien on GitHub · 2026-12-05 04:57 UTC · original

Problem

In the launcher’s launch.rs, engine_running() checks only the process image name leila.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.

**@⁠eredetien** on GitHub · 2026-12-05 04:57 UTC · [original](https://github.com/tshadofr/Leila/issues/35) ## Problem In the launcher’s `launch.rs`, `engine_running()` checks only the process image name `leila.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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 04:58:30 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.