1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-16 15:18:58 +00:00

Redirect STDERR to error log (#709)

* Redirect STDERR to error log

* Add dup2.go

* Redirect error log to log file

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2024-10-29 10:57:03 +08:00
committed by GitHub
parent abe4537648
commit fdd3bc8f52
6 changed files with 57 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
//go:build !(linux && arm64)
package main
import (
"syscall"
)
func Dup(from, to int) error {
return syscall.Dup2(from, to)
}