Skip to content

Commit

Permalink
riotctrl_ctrl: one more indirection to get native
Browse files Browse the repository at this point in the history
Since the native process is a child process of pyterm when called via
make we need to dig deeper for riotctrl
  • Loading branch information
OlegHahm committed Dec 13, 2023
1 parent 0d1aa51 commit d95fcdf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist/pythonlibs/riotctrl_ctrl/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ def _set_debug_adapter_id(self, child):
def start_term(self, *args, **kwargs):
super().start_term(*args, **kwargs)
for child in psutil.Process(pid=self._term_pid()).children():
if self._set_debug_adapter_id(child):
break
for grandchild in child.children():
if self._set_debug_adapter_id(grandchild):
break

0 comments on commit d95fcdf

Please sign in to comment.