- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for setrlimit1 (0.18 sec)
-
src/syscall/rlimit.go
// which Go of course has no choice but to respect. func init() { var lim Rlimit if err := Getrlimit(RLIMIT_NOFILE, &lim); err == nil && lim.Cur != lim.Max { origRlimitNofile.Store(&lim) nlim := lim nlim.Cur = nlim.Max adjustFileLimit(&nlim) setrlimit(RLIMIT_NOFILE, &nlim) } } func Setrlimit(resource int, rlim *Rlimit) error { if resource == RLIMIT_NOFILE {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:57 UTC 2024 - 1.6K bytes - Viewed (0) -
pilot/cmd/pilot-agent/app/fds_unix.go
package app import "golang.org/x/sys/unix" func raiseFileLimits() (uint64, error) { rlimit := unix.Rlimit{} if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlimit); err != nil { return 0, err } rlimit.Cur = rlimit.Max if err := unix.Setrlimit(unix.RLIMIT_NOFILE, &rlimit); err != nil { return 0, err } return rlimit.Cur, nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 06 22:16:26 UTC 2024 - 1.1K bytes - Viewed (0) -
src/runtime/runtime-gdb_unix_test.go
func enableCore() { debug.SetTraceback("crash") var lim syscall.Rlimit err := syscall.Getrlimit(syscall.RLIMIT_CORE, &lim) if err != nil { panic(fmt.Sprintf("error getting rlimit: %v", err)) } lim.Cur = lim.Max fmt.Fprintf(os.Stderr, "Setting RLIMIT_CORE = %+#v\n", lim) err = syscall.Setrlimit(syscall.RLIMIT_CORE, &lim) if err != nil { panic(fmt.Sprintf("error setting rlimit: %v", err)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 17 19:05:30 UTC 2024 - 9.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sync/errgroup/errgroup.go
} }() return true } // SetLimit limits the number of active goroutines in this group to at most n. // A negative value indicates no limit. // // Any subsequent call to the Go method will block until it can add an active // goroutine without exceeding the configured limit. // // The limit must not be modified while any goroutines in the group are active. func (g *Group) SetLimit(n int) { if n < 0 { g.sem = nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:57:25 UTC 2024 - 3.3K bytes - Viewed (0) -
src/syscall/exec_unix.go
if err != nil { return err } envvp, err := SlicePtrFromStrings(envv) if err != nil { return err } runtime_BeforeExec() rlim := origRlimitNofile.Load() if rlim != nil { Setrlimit(RLIMIT_NOFILE, rlim) } var err1 error if runtime.GOOS == "solaris" || runtime.GOOS == "illumos" || runtime.GOOS == "aix" { // RawSyscall should never be used on Solaris, illumos, or AIX. err1 = execveLibc(
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 8.7K bytes - Viewed (0) -
src/syscall/syscall_wasip1.go
} errno := fd_fdstat_set_flags(int32(fd), flags) return errnoErr(errno) } type Rlimit struct { Cur uint64 Max uint64 } const ( RLIMIT_NOFILE = iota ) func Getrlimit(which int, lim *Rlimit) error { return ENOSYS
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.4K bytes - Viewed (0)