[process][linux] get name from /proc/(pid)/comm
This commit is contained in:
parent
7485c8041d
commit
45a01f678c
|
@ -818,7 +818,7 @@ func (p *Process) fillFromCommWithContext(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
p.name = strings.TrimRight(string(contents), "\n")
|
||||
p.name = strings.TrimSuffix(string(contents), "\n")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue