1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

feat: 适配arm64

This commit is contained in:
zhengkunwang223 2023-03-09 10:52:37 +08:00 committed by zhengkunwang223
parent 6c04bd4f59
commit 9a787640eb

View File

@ -10,7 +10,7 @@ var stdErrFileHandler *os.File
func dupWrite(file *os.File) error {
stdErrFileHandler = file
if err := syscall.Dup3(int(file.Fd()), int(os.Stderr.Fd())); err != nil {
if err := syscall.Dup3(int(file.Fd()), int(os.Stderr.Fd()), 0); err != nil {
return err
}
runtime.SetFinalizer(stdErrFileHandler, func(fd *os.File) {