|
From: Tom H. <th...@cy...> - 2005-02-13 12:19:49
|
CVS commit by thughes:
Fall back to the getrlimit system call if the ugetrlimit system call
fails rather than just trying ugetrlimit again.
M +1 -1 vg_mylibc.c 1.111
--- valgrind/coregrind/vg_mylibc.c #1.110:1.111
@@ -1461,5 +1461,5 @@ Int VG_(getrlimit) (Int resource, struct
res = VG_(do_syscall)(__NR_ugetrlimit, resource, (UWord)rlim);
if (res == -VKI_ENOSYS)
- res = VG_(do_syscall)(__NR_ugetrlimit, resource, (UWord)rlim);
+ res = VG_(do_syscall)(__NR_getrlimit, resource, (UWord)rlim);
if(VG_(is_kerror)(res)) res = -1;
return res;
|