avoid __synccall for setrlimit on kernels with prlimit syscall
authorRich Felker <dalias@aerifal.cx>
Tue, 27 Oct 2020 04:45:59 +0000 (00:45 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 27 Oct 2020 04:45:59 +0000 (00:45 -0400)
commit6ce91ef0e8eddd756def4e7e5c47c639f45fcf5f
treed1140e71b580268e477026588810723cb6e6022b
parent3437e478ba932edbab18a90638c20be1f0141156
avoid __synccall for setrlimit on kernels with prlimit syscall

resource limits have been process-wide since linux 2.6.10, and the
prlimit syscall was added in 2.6.36, so prlimit can be assumed to set
the resource limits correctly for the whole process.
src/misc/setrlimit.c