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:
commit
fc7e5e7af6
@ -163,7 +163,7 @@ func NewProcess(pid int32) (*Process, error) {
|
||||
if !exists {
|
||||
return p, ErrorProcessNotRunning
|
||||
}
|
||||
go p.CreateTime()
|
||||
p.CreateTime()
|
||||
return p, nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user