Skip to content

Commit

Permalink
Document how Connection.Cmdline is split
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan committed Oct 16, 2018
1 parent 3722545 commit 976b412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netstat.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type Connection struct {
// Exe contains the path to the process.
// Exe is empty if there was an error reading /proc/pid/exe.
Exe string
// Cmdline contains the complete command line for the process.
// Cmdline contains the complete command line for the process split by \000. Trailing \000 removed.
// Returns an empty array if /proc/pid/cmdline can't be read.
Cmdline []string
// Pid contains the pid of the process. Is zero if open connection can't be assigned to a pid.
Expand Down

0 comments on commit 976b412

Please sign in to comment.