<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/5991">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Avoid setting maxfiles for a remote asterisk<br><br>Setting maxfiles (maximum number of open files) has no practical<br>effect on a remote asterisk (rasterisk, rasterisk -x).<br><br>It has an ill effect of printing an extra message, which<br>may be annoying in case of -x.<br><br>ASTERISK-27105 #close<br><br>Change-Id: Iaf9eb344e4b4b517df91b736b27ec55f6a6921a2<br>---<br>M main/asterisk.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/asterisk.c b/main/asterisk.c<br>index 49db383..753ccf6 100644<br>--- a/main/asterisk.c<br>+++ b/main/asterisk.c<br>@@ -3727,7 +3727,9 @@<br> /* Set the maximum amount of open files */<br> } else if (!strcasecmp(v->name, "maxfiles")) {<br> ast_option_maxfiles = atoi(v->value);<br>- set_ulimit(ast_option_maxfiles);<br>+ if (!ast_opt_remote) {<br>+ set_ulimit(ast_option_maxfiles);<br>+ }<br> /* What user to run as */<br> } else if (!strcasecmp(v->name, "runuser")) {<br> ast_copy_string(cfg_paths.run_user, v->value, sizeof(cfg_paths.run_user));<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/5991">change 5991</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/5991"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 14 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Iaf9eb344e4b4b517df91b736b27ec55f6a6921a2 </div>
<div style="display:none"> Gerrit-Change-Number: 5991 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Tzafrir Cohen <tzafrir.cohen@xorcom.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>