Commit Graph

2 Commits (b40026eaad28f82ed89406eeb5e6f6475745fccb)

Author SHA1 Message Date
shirou 6df9bf1af4 add SPDX License, remove old build tag, and replace import 1 year ago
Steven Hartland 6450c60b61 Eliminate use of sysctl command on FreeBSD
In order to improve performance and help prevent crashes due to the outstanding fork crash bug:
https://github.com/golang/go/issues/15658

Replace string parsed values from the sysctl command with native reads of sysctl values using unix.SysctlRaw and unix.SysctlUint32.

This also merges OpenBSD and FreeBSD load implementations which are identical.
8 years ago