freebsd/amd64: rc2

This commit is contained in:
Jan Mercl
2021-09-06 20:57:10 +02:00
parent 92ad7a5b40
commit 5cfa71ff0c
2 changed files with 4 additions and 4 deletions

View File

@@ -7,4 +7,4 @@
package sqlite // import "modernc.org/sqlite"
func setMaxOpenFiles(n int) error {}
func setMaxOpenFiles(n int) error { return nil }

View File

@@ -8,9 +8,9 @@ import (
"golang.org/x/sys/unix"
)
func setMaxOpenFiles(n int) error {
func setMaxOpenFiles(n int64) error {
var rLimit unix.Rlimit
rLimit.Max = 1024
rLimit.Cur = 1024
rLimit.Max = n
rLimit.Cur = n
return unix.Setrlimit(unix.RLIMIT_NOFILE, &rLimit)
}