diff --git a/process/process_linux.go b/process/process_linux.go index 341420bcf..670817350 100644 --- a/process/process_linux.go +++ b/process/process_linux.go @@ -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] } } }