xmtop/logging/logging_other.go
mikael 8a42612031 Use dup2 on FreeBSD aarch64
Update changelog.

Clears up the FreeBSD dup2 patch issues; the build flags were causing compile failures on other target OSes.
2020-05-28 18:20:58 -05:00

11 lines
187 B
Go

// +build linux,!arm64 openbsd,!arm64 freebsd darwin,!arm64
package logging
import "syscall"
import "os"
func stderrToLogfile(logfile *os.File) {
syscall.Dup2(int(logfile.Fd()), 2)
}