xmtop/logging/logging_other.go

13 lines
143 B
Go
Raw Normal View History

2018-12-13 10:18:43 +08:00
// +build !arm64
package logging
import (
"os"
"syscall"
)
2019-03-01 08:29:52 +08:00
func StderrToLogfile(logfile *os.File) {
syscall.Dup2(int(logfile.Fd()), 2)
2018-12-13 10:18:43 +08:00
}