Skip to content

Commit

Permalink
CR: process_selector to None when unregister
Browse files Browse the repository at this point in the history
  • Loading branch information
roi-granulate committed Jun 23, 2024
1 parent a76ef4f commit 7312968
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gprofiler/profilers/python_ebpf.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def _unregister_process_selectors(self) -> None:
assert self.process_selector
for selector_key in list(self.process_selector.get_map().values()):
self.process_selector.unregister(selector_key.fileobj)
self.process_selector = None

def _read_process_standard_outputs(self) -> Tuple[Optional[str], Optional[str]]:
"""
Expand Down

0 comments on commit 7312968

Please sign in to comment.