prlimit: avoid prlimit syscalls for limits unless to modify or to show
PATCH 14/15 prlimit: avoid prlimit syscalls for limits unless to modify or to show
[PATCH 14/15] prlimit: avoid prlimit syscalls for limits unless to modify or to show
Signed-off-by Bernhard Voelker <[email protected]>
--- sys-utils/prlimit.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
sys-utils/prlimit.c +0 -0
@@ -349,6 +349,8 @@ static void do_prlimit(struct prlimit lims[], int tt_flags) errx(EXIT_FAILURE, _("the soft limit cannot exceed the ceiling
value"));
new = &lims[i].rlim;
+ } else if (!(lims[i].show)) {
+ continue;
}
if (verbose && new) {
Karel Zak
maintainerQuoted 2 lines · Bernhard Voelker
[PATCH 14/15] prlimit: avoid prlimit syscalls for limits unless to modify or to show
This is unnecessary now.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com