diff --git a/fileserver/fileserver.go b/fileserver/fileserver.go index f7e42662..e7bc6bbe 100644 --- a/fileserver/fileserver.go +++ b/fileserver/fileserver.go @@ -437,7 +437,7 @@ func main() { if err != nil { log.Fatalf("Failed to open or create error log file: %v", err) } - syscall.Dup3(int(fp.Fd()), int(os.Stderr.Fd()), 0) + syscall.Syscall(syscall.SYS_FCNTL, fp.Fd(), syscall.F_DUP2FD, os.Stderr.Fd()) } repomgr.Init(seafileDB)