mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-07-07 20:18:45 +00:00
* Redirect STDERR to error log * Add dup2.go * Redirect error log to log file --------- Co-authored-by: 杨赫然 <heran.yang@seafile.com>
12 lines
132 B
Go
12 lines
132 B
Go
//go:build !(linux && arm64)
|
|
|
|
package utils
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func Dup(from, to int) error {
|
|
return syscall.Dup2(from, to)
|
|
}
|