fix: build on Linux arm64

This commit is contained in:
Ash Keel 2023-11-11 15:13:49 +01:00
parent e535f89efc
commit 78ba383f7b
No known key found for this signature in database
GPG Key ID: 53A9E9A6035DD109
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import (
)
func RedirectStderr(f *os.File) {
err := syscall.Dup2(int(f.Fd()), int(os.Stderr.Fd()))
err := syscall.Dup3(int(f.Fd()), int(os.Stderr.Fd()), 0)
if err != nil {
log.Fatalf("Failed to redirect stderr to file: %v", err)
}