[v3][process][linux] Fix fillFromStatusWithContext() on systems with 128 bit signal masks.
This commit is contained in:
parent
fc074343f8
commit
14a1f64e7e
|
@ -930,30 +930,45 @@ func (p *Process) fillFromStatusWithContext(ctx context.Context) error {
|
|||
}
|
||||
p.memInfo.Locked = v * 1024
|
||||
case "SigPnd":
|
||||
if len(value) > 16 {
|
||||
value = value[len(value)-16:]
|
||||
}
|
||||
v, err := strconv.ParseUint(value, 16, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
p.sigInfo.PendingThread = v
|
||||
case "ShdPnd":
|
||||
if len(value) > 16 {
|
||||
value = value[len(value)-16:]
|
||||
}
|
||||
v, err := strconv.ParseUint(value, 16, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
p.sigInfo.PendingProcess = v
|
||||
case "SigBlk":
|
||||
if len(value) > 16 {
|
||||
value = value[len(value)-16:]
|
||||
}
|
||||
v, err := strconv.ParseUint(value, 16, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
p.sigInfo.Blocked = v
|
||||
case "SigIgn":
|
||||
if len(value) > 16 {
|
||||
value = value[len(value)-16:]
|
||||
}
|
||||
v, err := strconv.ParseUint(value, 16, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
p.sigInfo.Ignored = v
|
||||
case "SigCgt":
|
||||
if len(value) > 16 {
|
||||
value = value[len(value)-16:]
|
||||
}
|
||||
v, err := strconv.ParseUint(value, 16, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue