Skip to content

Commit

Permalink
fix: fix windows build
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <[email protected]>
  • Loading branch information
Andreagit97 committed Oct 3, 2023
1 parent 8ccc958 commit 3879f58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions userspace/libsinsp/threadinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ void sinsp_threadinfo::set_pod_uid()
return;
}

#ifndef _WIN32
// If `this->cgroups()` is not empty we should have at least the first element
// An example of `this->cgroups()[0].second` layout is:
// /kubelet.slice/kubelet-kubepods.slice/kubelet-kubepods-pod1b011081_6e8e_4839_b225_4685eae5fd59.slice/cri-containerd-2f92446a3fbfd0b7a73457b45e96c75a25c5e44e7b1bcec165712b906551c261.scope
Expand All @@ -858,6 +859,7 @@ void sinsp_threadinfo::set_pod_uid()

// The final `pod_uid` layout is:
// 05869489-8c7f-45dc-9abd-1b1620787bb1
#endif
}

sinsp_fdinfo_t* sinsp_threadinfo::add_fd(int64_t fd, sinsp_fdinfo_t *fdinfo)
Expand Down

0 comments on commit 3879f58

Please sign in to comment.