Skip to content

Commit

Permalink
Merge pull request shirou#790 from Lomanic/issue773
Browse files Browse the repository at this point in the history
[process] Fix shirou#773 remove data race in NewProcess
  • Loading branch information
Lomanic authored Nov 27, 2019
2 parents c9a2a69 + e34a731 commit fc7e5e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func NewProcess(pid int32) (*Process, error) {
if !exists {
return p, ErrorProcessNotRunning
}
go p.CreateTime()
p.CreateTime()
return p, nil
}

Expand Down

0 comments on commit fc7e5e7

Please sign in to comment.