Merge pull request #542 from gescheit/master

use full cmdline in case of proc renaming
pull/550/head
shirou 7 years ago committed by GitHub
commit 63728fcf6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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]
}
}
}

Loading…
Cancel
Save