1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-07-07 12:10:31 +00:00
seafile-server/fileserver/utils/dup3.go
feiniks fdd3bc8f52
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>
2024-10-29 10:57:03 +08:00

12 lines
132 B
Go

//go:build linux && arm64
package utils
import (
"syscall"
)
func Dup(from, to int) error {
return syscall.Dup3(from, to, 0)
}