fix(process_manager): await child exit and reap process handles (v0.1.16) #77

Merged
gronod merged 1 commits from fix/issue-63-process-manager-reap into development 2026-08-25 11:08:25 +01:00
Owner

Summary

This PR refactors ProcessManager to asynchronously wait on child processes via child.wait().await and reap completed process handles from the internal tracking map upon termination (resolving #63).

Closes #63

Changes

  1. Async Process Waiting & Handle Cleanup (src-tauri/src/process_manager.rs):
    • Replaced the 100ms child.try_wait() polling loop with direct child.wait().await within a dedicated async task.
    • Automatically removes process handles from self.processes when the child process exits or is killed.
    • Removed unused Windows CommandExt import warning.
  2. Version Bump:
    • Incremented point version 0.1.15 -> 0.1.16 across package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
### Summary This PR refactors `ProcessManager` to asynchronously wait on child processes via `child.wait().await` and reap completed process handles from the internal tracking map upon termination (resolving #63). Closes #63 ### Changes 1. **Async Process Waiting & Handle Cleanup (`src-tauri/src/process_manager.rs`)**: - Replaced the 100ms `child.try_wait()` polling loop with direct `child.wait().await` within a dedicated async task. - Automatically removes process handles from `self.processes` when the child process exits or is killed. - Removed unused Windows `CommandExt` import warning. 2. **Version Bump**: - Incremented point version `0.1.15` -> `0.1.16` across `package.json`, `src-tauri/Cargo.toml`, and `src-tauri/tauri.conf.json`.
gronod added 1 commit 2026-08-25 10:59:24 +01:00
fix(process_manager): await child exit and reap process handles (v0.1.16)
Build Linux Packages / Build Linux (pull_request) Successful in 8m57s
Build Windows Packages / Build Windows (pull_request) Successful in 7m29s
90012e4608
gronod merged commit 6d9c1d5c1f into development 2026-08-25 11:08:25 +01:00
gronod deleted branch fix/issue-63-process-manager-reap 2026-08-25 11:08:26 +01:00
Sign in to join this conversation.