Merge pull request #790 from Lomanic/issue773

[process] Fix #773 remove data race in NewProcess
tags/v2.19.11 v2.19.11
Lomanic 6 years ago committed by GitHub
commit fc7e5e7af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -163,7 +163,7 @@ func NewProcess(pid int32) (*Process, error) {
if !exists {
return p, ErrorProcessNotRunning
}
go p.CreateTime()
p.CreateTime()
return p, nil
}

Loading…
Cancel
Save