aarch64-go-log-fix.patch 250 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
--- ./vendor/github.com/ngaut/log/crash_unix.go.orig
+++ ./vendor/github.com/ngaut/log/crash_unix.go
@@ -13,6 +13,6 @@
 	if err != nil {
 		log.Println(err.Error())
 	} else {
-		syscall.Dup2(int(f.Fd()), 2)
+		syscall.Dup3(int(f.Fd()), 2, 0)
 	}
 }