Skip to content

Commit e2c79a1

Browse files
committed
use full cmdline in case of proc renaming
1 parent a9c2f23 commit e2c79a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

process/process_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,8 @@ func (p *Process) fillFromStatusWithContext(ctx context.Context) error {
985985
extendedName := filepath.Base(cmdlineSlice[0])
986986
if strings.HasPrefix(extendedName, p.name) {
987987
p.name = extendedName
988+
} else {
989+
p.name = cmdlineSlice[0]
988990
}
989991
}
990992
}

0 commit comments

Comments
 (0)