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