Skip to content

Commit

Permalink
CR: taking advantage of BaseSelector.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
roi-granulate committed Jun 23, 2024
1 parent 1655239 commit d0a1200
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gprofiler/profilers/python_ebpf.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ def _register_process_selectors(self) -> None:

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.close()
self.process_selector = None

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

0 comments on commit d0a1200

Please sign in to comment.