Commit c206647
authored
* fix: Remove double-kill bug in Windows process termination (#777)
Problems fixed:
- Removed double TASKKILL execution when SendInterrupt is enabled
- Simplified kill logic to match Linux behavior (single kill command)
- Added console window hiding for cleaner UX (no flashing windows)
- Switched from PowerShell to cmd.exe for better performance
- Improved logging to match Linux output format
- Better error handling for already-terminated processes
The previous code would run TASKKILL twice when SendInterrupt was
enabled, or handle it inconsistently when disabled. This caused
processes to not be properly terminated, leading to port conflicts
and orphaned processes as reported in #777.
Testing on Linux shows clean process transitions with no port
conflicts. Windows users requested to test and verify the fix.
Fixes #777
* refactor: Address review feedback - match Linux logging style
- Use mainDebug instead of runnerLog to match Linux implementation
- Remove verbose logging as requested by maintainer
- Clarify why send_interrupt is not supported on Windows
- Simplify error handling to match Linux style
- Keep core fix: single TASKKILL, console hiding, proper Wait()
Addresses feedback from @xiantang in PR review.
1 parent 7c0d51f commit c206647
1 file changed
+41
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | | - | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | | - | |
15 | | - | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
22 | 33 | | |
23 | | - | |
24 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
25 | 38 | | |
| 39 | + | |
26 | 40 | | |
27 | 41 | | |
28 | 42 | | |
29 | 43 | | |
30 | 44 | | |
31 | 45 | | |
32 | | - | |
33 | | - | |
| 46 | + | |
| 47 | + | |
34 | 48 | | |
35 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
36 | 59 | | |
37 | 60 | | |
38 | | - | |
| 61 | + | |
39 | 62 | | |
| 63 | + | |
40 | 64 | | |
41 | 65 | | |
42 | | - | |
| 66 | + | |
43 | 67 | | |
44 | 68 | | |
45 | 69 | | |
46 | 70 | | |
47 | 71 | | |
48 | 72 | | |
49 | 73 | | |
50 | | - | |
| 74 | + | |
51 | 75 | | |
52 | | - | |
| 76 | + | |
| 77 | + | |
53 | 78 | | |
0 commit comments