Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build tags for isRealProc function (prometheus#560)
Only aix, darwin, dragonfly freebsd and linux GOOS have a Type member in their syscall.Statfs_t struct. However, since the isRealProc compares that Type to a magic number (PROC_SUPER_MAGIC, 0x9fa0) which is only relevant to Linux (and possibly FreeBSD with Linux compatibility), adjust build tags accordingly. This drops the previous nostatfs build tag workaround, since the "tamago" GOOS for which it was originally added won't match the updated build tags. Fixes: prometheus#554. Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
- Loading branch information