You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mount/mountinfo_linux.go
+18-8Lines changed: 18 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ import (
25
25
"os"
26
26
"strconv"
27
27
"strings"
28
+
29
+
"github.com/pkg/errors"
28
30
)
29
31
30
32
// Self retrieves a list of mounts for the current running process.
@@ -41,13 +43,15 @@ func Self() ([]Info, error) {
41
43
funcparseInfoFile(r io.Reader) ([]Info, error) {
42
44
s:=bufio.NewScanner(r)
43
45
out:= []Info{}
44
-
46
+
varerrerror
45
47
fors.Scan() {
46
-
iferr:=s.Err(); err!=nil {
48
+
iferr=s.Err(); err!=nil {
47
49
returnnil, err
48
50
}
49
51
50
52
/*
53
+
See http://man7.org/linux/man-pages/man5/proc.5.html
0 commit comments