mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 00:09:16 +08:00
feat: 适配arm64
This commit is contained in:
parent
6c04bd4f59
commit
9a787640eb
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user