set_limit.c
changeset 8 96d16dfe787a
parent 3 820ed7fb9314
child 9 c3fecc82ade6
equal deleted inserted replaced
7:a1aa30f0f904 8:96d16dfe787a
    13 
    13 
    14     rlim.rlim_cur = megs;
    14     rlim.rlim_cur = megs;
    15     rlim.rlim_max = 1.25 * megs;
    15     rlim.rlim_max = 1.25 * megs;
    16     if (megs > (4 * 1024 * 1024))
    16     if (megs > (4 * 1024 * 1024))
    17         return setrlimit (RLIMIT_AS, &rlim);
    17         return setrlimit (RLIMIT_AS, &rlim);
       
    18 
    18     return -1;
    19     return -1;
    19 }
    20 }