xmtop/logging/logging_other.go

12 lines
183 B
Go
Raw Normal View History

// +build linux openbsd freebsd darwin
2018-12-13 10:18:43 +08:00
// +build !arm64
package logging
import "syscall"
import "os"
2018-12-13 10:18:43 +08:00
2020-02-16 04:27:31 +08:00
func stderrToLogfile(logfile *os.File) {
2019-03-01 08:29:52 +08:00
syscall.Dup2(int(logfile.Fd()), 2)
2018-12-13 10:18:43 +08:00
}