Skip to content

Commit

Permalink
Fix reading of network namespace inodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfonso Acosta committed Feb 2, 2016
1 parent 8e0fa9b commit 004ab28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probe/endpoint/procspy/proc.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func walkProcPid(buf *bytes.Buffer, walker process.Walker, namespaceTicker <-cha
walker.Walk(func(p, _ process.Process) {
dirName := strconv.Itoa(p.PID)

if err := fs.Lstat(filepath.Join(procRoot, dirName, "/ns/net"), &statT); err != nil {
if err := fs.Stat(filepath.Join(procRoot, dirName, "/ns/net"), &statT); err != nil {
return
}

Expand Down

0 comments on commit 004ab28

Please sign in to comment.