logging: Use dup(2) syscall on darwin
This commit is contained in:
parent
3d3b7be6db
commit
1e59a0a926
|
@ -1,4 +1,4 @@
|
|||
// +build !freebsd,arm64
|
||||
// +build !freebsd,!darwin,arm64
|
||||
|
||||
package logging
|
||||
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
// +build linux,!arm64 openbsd,!arm64 freebsd darwin,!arm64
|
||||
// +build linux,!arm64 openbsd,!arm64 freebsd darwin
|
||||
|
||||
package logging
|
||||
|
||||
import "syscall"
|
||||
import "os"
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func stderrToLogfile(logfile *os.File) {
|
||||
syscall.Dup2(int(logfile.Fd()), 2)
|
||||
|
|
Loading…
Reference in New Issue
Block a user