Merge remote-tracking branch 'darwinArm/darwin-arm64-dup2'
This commit is contained in:
commit
8d0c828e91
|
@ -1,4 +1,4 @@
|
||||||
// +build !freebsd,arm64
|
// +build !freebsd,!darwin,arm64
|
||||||
|
|
||||||
package logging
|
package logging
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
// +build linux,!arm64 openbsd,!arm64 freebsd darwin,!arm64
|
// +build linux,!arm64 openbsd,!arm64 freebsd darwin
|
||||||
|
|
||||||
package logging
|
package logging
|
||||||
|
|
||||||
import "syscall"
|
import (
|
||||||
import "os"
|
"os"
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
func stderrToLogfile(logfile *os.File) {
|
func stderrToLogfile(logfile *os.File) {
|
||||||
syscall.Dup2(int(logfile.Fd()), 2)
|
syscall.Dup2(int(logfile.Fd()), 2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user