1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

Merge pull request #790 from Lomanic/issue773

[process] Fix #773 remove data race in NewProcess
This commit is contained in:
Lomanic 2019-11-27 19:28:36 +01:00 committed by GitHub
commit fc7e5e7af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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