Skip to content

Commit e0c8b87

Browse files
committed
bugfix: the main thread was not properly reset in sinsp_thread_manager::reset_child_dependencies()
1 parent 72c15d0 commit e0c8b87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

userspace/libsinsp/threadinfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,11 +994,12 @@ void sinsp_thread_manager::reset_child_dependencies()
994994
{
995995
it->second.m_nchilds = 0;
996996
it->second.m_main_program_thread = NULL;
997+
it->second.m_main_thread = NULL;
997998
it->second.m_progid = -1LL;
998999
sinsp_fdtable* fdt = it->second.get_fd_table();
9991000
if(fdt != NULL)
10001001
{
1001-
fdt->m_last_accessed_fd = -1LL;
1002+
fdt->reset_cache();
10021003
}
10031004
}
10041005
}

0 commit comments

Comments
 (0)