- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 45 for prlimit1 (0.2 sec)
-
src/syscall/syscall_linux.go
//sys Munlockall() (err error) // prlimit changes a resource limit. We use a single definition so that // we can tell StartProcess to not restore the original NOFILE limit. // // golang.org/x/sys linknames prlimit. // Do not remove or change the type signature. // //go:linkname prlimit func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { err = prlimit1(pid, resource, newlimit, old)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:12:46 UTC 2024 - 35.7K bytes - Viewed (0) -
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) -
src/syscall/syscall_linux_test.go
origRlimitNofile.Store(&syscall.Rlimit{ Cur: 1024, Max: 65536, }) } // Get current process's nofile limit var lim syscall.Rlimit if err := syscall.Prlimit(0, syscall.RLIMIT_NOFILE, nil, &lim); err != nil { t.Fatalf("Failed to get the current nofile limit: %v", err) } // Set current process's nofile limit through prlimit if err := syscall.Prlimit(0, syscall.RLIMIT_NOFILE, &lim, nil); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 23K bytes - Viewed (0) -
cmd/server-rlimit.go
Harshavardhana <******@****.***> 1717070292 -0700
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 30 11:58:12 UTC 2024 - 2.9K bytes - Viewed (0) -
src/syscall/export_linux_test.go
// license that can be found in the LICENSE file. package syscall import ( "unsafe" ) var ( RawSyscallNoError = rawSyscallNoError ForceClone3 = &forceClone3 Prlimit = prlimit ) const ( Sys_GETEUID = sys_GETEUID ) func Tcgetpgrp(fd int) (pgid int32, err error) { _, _, errno := Syscall6(SYS_IOCTL, uintptr(fd), uintptr(TIOCGPGRP), uintptr(unsafe.Pointer(&pgid)), 0, 0, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:18:19 UTC 2024 - 775 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) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/lister_watcher_test.go
obj1, err := lw.List(metav1.ListOptions{Limit: 2}) if err != nil { t.Fatalf("List failed: %v", err) } limit1, ok := obj1.(*example.PodList) if !ok { t.Fatalf("Expected PodList but got %v", limit1) } if len(limit1.Items) != 2 { t.Errorf("Expected PodList of length 2 but got %d", len(limit1.Items)) } if limit1.Continue == "" { t.Errorf("Expected list to have Continue but got none") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 11:51:06 UTC 2024 - 3.6K bytes - Viewed (0) -
src/runtime/runtime-gdb_unix_test.go
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)) } } func main() { flag.Parse()
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/syscall/export_rlimit_test.go
// license that can be found in the LICENSE file. //go:build unix package syscall import "sync/atomic" func OrigRlimitNofile() *Rlimit { return origRlimitNofile.Load() } func GetInternalOrigRlimitNofile() *atomic.Pointer[Rlimit] { return &origRlimitNofile
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:18:19 UTC 2024 - 374 bytes - Viewed (0) -
src/syscall/exec_unix_test.go
t.Error("syscall.Exec returned") } // Test that rlimit values are restored by exec. func TestRlimitRestored(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") != "" { fmt.Println(syscall.OrigRlimitNofile().Cur) os.Exit(0) } orig := syscall.OrigRlimitNofile() if orig == nil { t.Skip("skipping test because rlimit not adjusted at startup") } executable, err := os.Executable()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 04:41:27 UTC 2024 - 7.9K bytes - Viewed (0)