We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c911ad commit 0f130f9Copy full SHA for 0f130f9
core/utils/os.py
@@ -85,7 +85,7 @@ def find_process(proc: str, instance: Optional[str] = None) -> Generator[psutil.
85
if not cmdline:
86
continue
87
# Check if `instance` is part of any cmdline parameter (case-insensitive)
88
- if any(instance.casefold() in c.replace('\\', '/').casefold() for c in cmdline):
+ if any(instance.casefold() in c.replace('\\', '/').casefold().split('/') for c in cmdline):
89
yield p
90
else:
91
0 commit comments