WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [qemu-xen-unstable] bump RLIMIT_AS if restricted

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [qemu-xen-unstable] bump RLIMIT_AS if restricted
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Mon, 17 Jan 2011 07:52:36 -0800
Delivery-date: Mon, 17 Jan 2011 07:54:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
commit 2aa36d470e97f4baa219f78df82e2d3fe3d9f96d
Author: Jan Beulich <jbeulich@xxxxxxxxxx>
Date:   Tue Jan 11 18:38:59 2011 +0000

    bump RLIMIT_AS if restricted
    
    Mostly the same as is already being done for several other RLIMIT_*
    values.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
    Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 vl.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/vl.c b/vl.c
index d465a09..2ee9aee 100644
--- a/vl.c
+++ b/vl.c
@@ -4846,6 +4846,13 @@ int main(int argc, char **argv, char **envp)
     rl.rlim_cur = rl.rlim_max;
     if (setrlimit(RLIMIT_DATA, &rl) != 0)
        perror("setrlimit(RLIMIT_DATA)");
+    if (getrlimit(RLIMIT_AS, &rl) == 0) {
+       rl.rlim_cur = rl.rlim_max;
+       if (setrlimit(RLIMIT_AS, &rl) != 0)
+          perror("setrlimit(RLIMIT_AS)");
+    } else {
+       perror("getrlimit(RLIMIT_AS)");
+    }
     rl.rlim_cur = RLIM_INFINITY;
     rl.rlim_max = RLIM_INFINITY;
     if (setrlimit(RLIMIT_RSS, &rl) != 0)
--
generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [qemu-xen-unstable] bump RLIMIT_AS if restricted, Ian Jackson <=