Skip to content

Commit

Permalink
print namespaces found
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfonso Acosta committed Feb 1, 2016
1 parent d1b8d1f commit 8e0fa9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions probe/endpoint/procspy/proc.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ func walkProcPid(buf *bytes.Buffer, walker process.Walker, namespaceTicker <-cha

log.Printf("debug: walkProcPid: found %d namespaces\n", len(namespaces))

keys := make([]uint64, 0, len(namespaces))
for k := range namespaces {
keys = append(keys, k)
}
// This should match: sudo readlink /proc/*/ns/net | sort | uniq
log.Printf("debug: walkProcPid: namespaces %v\n", keys)

for _, procs := range namespaces {

<-namespaceTicker
Expand Down

0 comments on commit 8e0fa9b

Please sign in to comment.