--- a/set_limit.c +++ b/set_limit.c @@ -10,6 +10,8 @@ { struct rlimit rlim; + megs *= 1024 * 1024; + rlim.rlim_cur = megs; rlim.rlim_max = 1.25 * megs; if (megs > (4 * 1024 * 1024))