From 9a787640ebe995c9ad0401e58fbcee0c57be75d8 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Thu, 9 Mar 2023 10:52:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=82=E9=85=8Darm64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/log/dup_write_linux_arm64.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/log/dup_write_linux_arm64.go b/backend/log/dup_write_linux_arm64.go index d35a3873f..6342c16a9 100644 --- a/backend/log/dup_write_linux_arm64.go +++ b/backend/log/dup_write_linux_arm64.go @@ -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) {