Skip to content

Commit

Permalink
use full cmdline in case of proc renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
gescheit committed Jun 23, 2018
1 parent a9c2f23 commit e2c79a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions process/process_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,8 @@ func (p *Process) fillFromStatusWithContext(ctx context.Context) error {
extendedName := filepath.Base(cmdlineSlice[0])
if strings.HasPrefix(extendedName, p.name) {
p.name = extendedName
} else {
p.name = cmdlineSlice[0]
}
}
}
Expand Down

0 comments on commit e2c79a1

Please sign in to comment.