You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement recursive process tree termination for Windows
The taskkill /T command doesn't reliably kill all child processes
when they're created by Python subprocesses. This implements a
recursive solution using WMI to:
1. Find all child processes using wmic
2. Recursively kill all children first (depth-first)
3. Finally kill the parent process
This ensures that entire process trees are properly terminated,
including nested processes like parent->child->grandchild.
Reported-by: fweinberger
0 commit comments