From: Bernhard Voelker <mail@bernhard-voelker.de>
To: util-linux@vger.kernel.org
Subject: [PATCH 14/15] prlimit: avoid prlimit syscalls for limits unless to modify or to show
Date: Mon, 14 Nov 2011 02:48:53 +0100 [thread overview]
Message-ID: <4EC07385.70101@bernhard-voelker.de> (raw)
[PATCH 14/15] prlimit: avoid prlimit syscalls for limits unless to
modify or to show
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
---
sys-utils/prlimit.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c
index 1d6dd92..69440a5 100644
--- a/sys-utils/prlimit.c
+++ b/sys-utils/prlimit.c
@@ -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) {
next reply other threads:[~2011-11-14 1:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-14 1:48 Bernhard Voelker [this message]
2011-11-16 13:06 ` [PATCH 14/15] prlimit: avoid prlimit syscalls for limits unless to modify or to show Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EC07385.70101@bernhard-voelker.de \
--to=mail@bernhard-voelker.de \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).