2020-02-21 00:05:58 +08:00
|
|
|
// +build linux openbsd freebsd darwin
|
2018-12-13 10:18:43 +08:00
|
|
|
// +build !arm64
|
|
|
|
|
|
|
|
package logging
|
|
|
|
|
2020-02-16 04:57:18 +08:00
|
|
|
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
|
|
|
}
|