Skip to content

Commit

Permalink
cleanup: remove some duplicate code
Browse files Browse the repository at this point in the history
since write has the EF_USES_FLAG, we call `set_fd_info` in
`sinsp_parser::reset`

Signed-off-by: Andrea Terzolo <[email protected]>
  • Loading branch information
Andreagit97 committed Dec 16, 2024
1 parent 68f6a46 commit d6658b7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions userspace/libsinsp/parsers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ void sinsp_parser::process_event(sinsp_evt *evt) {
case PPME_SYSCALL_EXECVEAT_E:
store_event(evt);
break;
case PPME_SYSCALL_WRITE_E:
if(!m_inspector->is_dumping() && evt->get_tinfo() != nullptr) {
// note(jasondellaluce): this may be useless now that we removed tracers support
evt->set_fd_info(evt->get_tinfo()->get_fd(evt->get_tinfo()->m_lastevent_fd));
}
break;
case PPME_SYSCALL_MKDIR_X:
case PPME_SYSCALL_RMDIR_X:
case PPME_SYSCALL_LINK_X:
Expand Down

0 comments on commit d6658b7

Please sign in to comment.