We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3696fb5 commit 0ad12acCopy full SHA for 0ad12ac
utils/log_linux.go
@@ -11,7 +11,10 @@ func RedirectStderr() (err error) {
11
if err != nil {
12
return
13
}
14
- err = syscall.Dup2(int(logFile.Fd()), int(os.Stderr.Fd()))
+ //for amd64
15
+ //err = syscall.Dup2(int(logFile.Fd()), int(os.Stderr.Fd()))
16
+ // for arm64
17
+ err = syscall.Dup3(int(logFile.Fd()), int(os.Stderr.Fd()))
18
19
20
0 commit comments