summaryrefslogtreecommitdiffstats
path: root/logging/logging_other.go
diff options
context:
space:
mode:
Diffstat (limited to 'logging/logging_other.go')
-rw-r--r--logging/logging_other.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/logging/logging_other.go b/logging/logging_other.go
new file mode 100644
index 0000000..382baca
--- /dev/null
+++ b/logging/logging_other.go
@@ -0,0 +1,12 @@
+// +build !arm64
+
+package logging
+
+import (
+ "os"
+ "syscall"
+)
+
+func StderrToLogfile(logfile *os.File) {
+ syscall.Dup2(int(logfile.Fd()), 2)
+}