mirror of
https://github.com/router-for-me/EasyCLI.git
synced 2026-04-25 15:45:53 +03:00
[PR #9] [CLOSED] fix: ensure CLI process is properly terminated when quitting the app #27
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/EasyCLI#27
Loading…
Add table
Add a link
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?
📋 Pull Request Information
Original PR: https://github.com/router-for-me/EasyCLI/pull/9
Author: @benzntech
Created: 10/24/2025
Status: ❌ Closed
Base:
main← Head:fix/process-cleanup-on-quit📝 Commits (3)
0dfecadfix: ensure CLI process is properly terminated when quitting the app1e8f821Update src-tauri/src/main.rs65a353ffix: correct indentation and syntax in force kill block📊 Changes
1 file changed (+52 additions, -0 deletions)
View changed files
📝
src-tauri/src/main.rs(+52 -0)📄 Description
Problem
When quitting the app from the system tray, the CLIProxyAPI process sometimes remains running in the background, requiring manual cleanup.
Solution
This PR implements a more robust process cleanup mechanism in the
stop_process_internal()function:child.kill()to send termination signalkill -9 <PID>taskkill /F /PID <PID>Testing
Related Issue
Fixes the issue where CLI processes remain running after app quit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.