Skip to content

Commit

Permalink
Merge pull request #45 from vrothberg/another-rc
Browse files Browse the repository at this point in the history
Fix another race-condition when a PID has died
  • Loading branch information
rhatdan authored Dec 20, 2018
2 parents f381649 + cebb24e commit dc0bc9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func FromPIDs(ctx *types.PsContext, pids []string) ([]*Process, error) {
for _, pid := range pids {
p, err := New(ctx, pid)
if err != nil {
if os.IsNotExist(err) {
if os.IsNotExist(errors.Cause(err)) {
// proc parsing is racy
// Let's ignore "does not exist" errors
continue
Expand Down

0 comments on commit dc0bc9f

Please sign in to comment.