Tested manually on Darwin. This is a really odd chunk of code I had to remove. My best guess is that whoever wrote this was more familiar with C than Golang, hence that oddball pointer logic.
Also cleaned up some of the darwin code, since it was really annoying.
This is a perma-fix for https://github.com/elastic/gosigar/issues/138
Tested manually on Darwin. This is a really odd chunk of code I had to remove. My best guess is that whoever wrote this was more familiar with C than Golang, hence that oddball pointer logic.
Also cleaned up some of the darwin code, since it was really annoying.