diff --git a/userspace/libscap/scap_procs.c b/userspace/libscap/scap_procs.c index 0921e47fc5..a8b8e0ee2c 100644 --- a/userspace/libscap/scap_procs.c +++ b/userspace/libscap/scap_procs.c @@ -175,6 +175,10 @@ int32_t scap_proc_fill_info_from_stats(char* procdirname, struct scap_threadinfo { tinfo->vtid = vtid; } + else + { + tinfo->vtid = tinfo->tid; + } } else if(strstr(line, "NStgid:") == line) { @@ -183,6 +187,10 @@ int32_t scap_proc_fill_info_from_stats(char* procdirname, struct scap_threadinfo { tinfo->vpid = vpid; } + else + { + tinfo->vpid = tinfo->pid; + } } if(nfound == 8)