tobert/pcstat — pull request #6 by aybabtme (2014-08-17 17:56:41+00:00)
Title: skip invalid/error cases instead of fataling.

To skip directories requires adding additional logic in the `getMincore` func, to tell the loop it should skip. I do this by returning errors. Since other cases were fataling, I made them return errors and the loop skip them too.

Since the loop skips `pcStat` entries, the size is not known in advance, so I initialize the `stats` slice with a capacity instead of a length, and use `append` to insert values in.

r: @tobert