Merge remote-tracking branch 'darwinArm/darwin-arm64-dup2'

This commit is contained in:
Sean E. Russell 2021-07-20 09:33:09 -05:00
commit 8d0c828e91
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
// +build !freebsd,arm64
// +build !freebsd,!darwin,arm64
package logging

View File

@ -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)