Skip to content

Commit 0f130f9

Browse files
authored
BUGFIX
- Processes with similar instance names could not be detected correctly
1 parent 0c911ad commit 0f130f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/utils/os.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def find_process(proc: str, instance: Optional[str] = None) -> Generator[psutil.
8585
if not cmdline:
8686
continue
8787
# Check if `instance` is part of any cmdline parameter (case-insensitive)
88-
if any(instance.casefold() in c.replace('\\', '/').casefold() for c in cmdline):
88+
if any(instance.casefold() in c.replace('\\', '/').casefold().split('/') for c in cmdline):
8989
yield p
9090
else:
9191
yield p

0 commit comments

Comments
 (0)