diff options
author | 2023-04-10 12:35:05 +0200 | |
---|---|---|
committer | 2023-04-10 12:35:05 +0200 | |
commit | 1d8f9c6b1626d05856ac5aa99a216cee5c0d3e6a (patch) | |
tree | 482bb23426953fd1282f62f6595a9f73a49b0b3f /vendor/golang.org/x/sys/unix/syscall_unix.go | |
parent | [chore]: Bump github.com/spf13/cobra from 1.6.1 to 1.7.0 (#1686) (diff) | |
download | gotosocial-1d8f9c6b1626d05856ac5aa99a216cee5c0d3e6a.tar.xz |
[chore]: Bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#1685)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.7.0...v0.8.0)
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall_unix.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/syscall_unix.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall_unix.go b/vendor/golang.org/x/sys/unix/syscall_unix.go index 00f0aa375..8e48c29ec 100644 --- a/vendor/golang.org/x/sys/unix/syscall_unix.go +++ b/vendor/golang.org/x/sys/unix/syscall_unix.go @@ -587,3 +587,10 @@ func emptyIovecs(iov []Iovec) bool { } return true } + +// Setrlimit sets a resource limit. +func Setrlimit(resource int, rlim *Rlimit) error { + // Just call the syscall version, because as of Go 1.21 + // it will affect starting a new process. + return syscall.Setrlimit(resource, (*syscall.Rlimit)(rlim)) +} |