<p>Tzafrir Cohen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/5951">View Change</a></p><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 a n 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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/51/5951/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/asterisk.c b/main/asterisk.c<br>index 16313ea..a6e2149 100644<br>--- a/main/asterisk.c<br>+++ b/main/asterisk.c<br>@@ -3681,7 +3681,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/5951">change 5951</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/5951"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Iaf9eb344e4b4b517df91b736b27ec55f6a6921a2 </div>
<div style="display:none"> Gerrit-Change-Number: 5951 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Tzafrir Cohen <tzafrir.cohen@xorcom.com> </div>