xmtop/logging/logging_arm64.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

13 lines
154 B
Go

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