This patch reinstates fallback code when the 'prlimit64' system call is missing by reverting the relevant part of this upstream commit: commit 695d7d138eda449678a1650a8b8b58181033353f Author: Joseph Myers Date: Tue May 9 14:05:09 2017 +0000 Assume prlimit64 is available. The fallback code is useful on systems that lack 'prlimit64', such as the 2.6.32-on-steroid kernel found on RHEL 6: diff --git a/sysdeps/unix/sysv/linux/getrlimit64.c b/sysdeps/unix/sysv/linux/getrlimit64.c index 37c173286f..56af3c0646 100644 --- b/sysdeps/unix/sysv/linux/getrlimit64.c +++ a/sysdeps/unix/sysv/linux/getrlimit64.c @@ -35,7 +35,40 @@ int __getrlimit64 (enum __rlimit_resource resource, struct rlimit64 *rlimits) { - return INLINE_SYSCALL_CALL (prlimit64, 0, resource, NULL, rlimits); +#ifdef __NR_prlimit64 + int res = INLINE_SYSCALL_CALL (prlimit64, 0, resource, NULL, rlimits)
aboutsummaryrefslogtreecommitdiff
blob: 8785cd9a9f24edf7122312dd1231239480ca847f (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40</