https://bz.apache.org/bugzilla/show_bug.cgi?id=66217

--- Comment #4 from Aleksandr <[email protected]> ---
(In reply to Eric Covener from comment #3)
> That's not how the manual describes it. I think in that case it would not
> add much to just setting ulimits in the environment that starts Apache.

But technically, the is reading kernel's rlimits:

AP_DECLARE(void) ap_unixd_set_rlimit(cmd_parms *cmd, struct rlimit **plimit,
                                     const char *arg,
                                     const char * arg2, int type)

....
 *plimit = (struct rlimit *)apr_pcalloc(cmd->pool, sizeof(**plimit));
limit = *plimit;

then adjusts:

limit->rlim_max = max

So I would guess either this variable is supposed to either be picked up by
kernel from *plimit, or set by setrlimit, isn't it? Again, I'm not a C/kernel
developer but for some reason, RLimitMEM handler calls ap_unixd_set_rlimit

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to