util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 14/15] prlimit: avoid prlimit syscalls for limits unless to modify or to show
@ 2011-11-14  1:48 Bernhard Voelker
  2011-11-16 13:06 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Bernhard Voelker @ 2011-11-14  1:48 UTC (permalink / raw)
  To: util-linux

[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) {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 14/15] prlimit: avoid prlimit syscalls for limits unless to modify or to show
  2011-11-14  1:48 [PATCH 14/15] prlimit: avoid prlimit syscalls for limits unless to modify or to show Bernhard Voelker
@ 2011-11-16 13:06 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2011-11-16 13:06 UTC (permalink / raw)
  To: Bernhard Voelker; +Cc: util-linux

On Mon, Nov 14, 2011 at 02:48:53AM +0100, Bernhard Voelker wrote:
> [PATCH 14/15] prlimit: avoid prlimit syscalls for limits unless to  
> modify or to show

 This is unnecessary now.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-16 13:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-14  1:48 [PATCH 14/15] prlimit: avoid prlimit syscalls for limits unless to modify or to show Bernhard Voelker
2011-11-16 13:06 ` Karel Zak

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).