- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SetNumFiles (0.1 sec)
-
pkg/util/rlimit/rlimit_unsupported.go
See the License for the specific language governing permissions and limitations under the License. */ package rlimit import ( "errors" ) // SetNumFiles sets the rlimit for the maximum open files. func SetNumFiles(maxOpenFiles uint64) error { return errors.New("SetRLimit unsupported in this platform")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 813 bytes - Viewed (0) -
pkg/util/rlimit/rlimit_linux.go
See the License for the specific language governing permissions and limitations under the License. */ package rlimit import ( "golang.org/x/sys/unix" ) // SetNumFiles sets the linux rlimit for the maximum open files. func SetNumFiles(maxOpenFiles uint64) error { return unix.Setrlimit(unix.RLIMIT_NOFILE, &unix.Rlimit{Max: maxOpenFiles, Cur: maxOpenFiles})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 866 bytes - Viewed (0)