Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TTianshun committed Dec 14, 2023
1 parent 37541f5 commit d1c13c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viztracer/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def get_subprocess_pid_linux(pid: int) -> set:
except FileNotFoundError:
pass # Process has already terminated
return set(children)

def get_subprocess_pid_windows(pid: int) -> set:
cmdline = f"wmic process where (ParentProcessId={pid}) get ProcessId"
result = subprocess.run(cmdline, stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=1)
Expand Down

0 comments on commit d1c13c1

Please sign in to comment.