Skip to content

Commit

Permalink
cleanup(libsinsp): swap check order in is_in_pid_namespace()
Browse files Browse the repository at this point in the history
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
  • Loading branch information
incertum authored and poiana committed Aug 2, 2023
1 parent 0ebd6f7 commit fe3153c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/threadinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class SINSP_PUBLIC sinsp_threadinfo: public libsinsp::state::table_entry
*/
inline bool is_in_pid_namespace() const
{
return (m_tid != m_vtid) || m_flags & PPM_CL_CHILD_IN_PIDNS;
return (m_flags & PPM_CL_CHILD_IN_PIDNS || m_tid != m_vtid);
}

/*
Expand Down

0 comments on commit fe3153c

Please sign in to comment.