mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-17 23:59:44 +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:
11
fileserver/utils/dup3.go
Normal file
11
fileserver/utils/dup3.go
Normal file
@@ -0,0 +1,11 @@
|
||||
//go:build linux && arm64
|
||||
|
||||
package utils
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func Dup(from, to int) error {
|
||||
return syscall.Dup3(from, to, 0)
|
||||
}
|
Reference in New Issue
Block a user