<h1>Project "FreeSWITCH Source" received a push.</h1>

<h2>branch: master updated</h2>
<pre>
       via: 1b52a79569f9c0f453af968c8749e89ea7156857 (commit)
      from: 77f52081ffb6909db2bb6f59b57c2ecb400dbbbe (commit)


</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: Anthony Minessale
comments: 
stop suggesting -waste since its a bad choice

<span style="color: #000080; font-weight: bold">diff --git a/src/switch.c b/src/switch.c</span>
<span style="color: #000080; font-weight: bold">index c922d27..b3112cb 100644</span>
<span style="color: #A00000">--- a/src/switch.c</span>
<span style="color: #00A000">+++ b/src/switch.c</span>
<span style="color: #800080; font-weight: bold">@@ -404,7 +404,8 @@ int main(int argc, char *argv[])</span>
 #endif
                 &quot;\t-help                  -- this message\n&quot; &quot;\t-version               -- print the version and exit\n&quot;
 #ifdef HAVE_SETRLIMIT
<span style="color: #A00000">-                &quot;\t-waste                 -- allow memory waste\n&quot; &quot;\t-core                  -- dump cores\n&quot;</span>
<span style="color: #00A000">+                &quot;\t-waste                 -- allow memory waste\n&quot; </span>
<span style="color: #00A000">+                &quot;\t-core                  -- dump cores\n&quot;</span>
 #endif
                 &quot;\t-hp                    -- enable high priority settings\n&quot;
                 &quot;\t-vg                    -- run under valgrind\n&quot;
<span style="color: #800080; font-weight: bold">@@ -552,6 +553,13 @@ int main(int argc, char *argv[])</span>
                 }
 
                 if (local_argv[x] &amp;&amp; !strcmp(local_argv[x], &quot;-waste&quot;)) {
<span style="color: #00A000">+                        fprintf(stderr, &quot;WARNING: Wasting up to 8 megs of memory per thread.\n&quot;);</span>
<span style="color: #00A000">+                        sleep(2);</span>
<span style="color: #00A000">+                        waste++;</span>
<span style="color: #00A000">+                        known_opt++;</span>
<span style="color: #00A000">+                }</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                if (local_argv[x] &amp;&amp; !strcmp(local_argv[x], &quot;-no-auto-stack&quot;)) {</span>
                         waste++;
                         known_opt++;
                 }
<span style="color: #800080; font-weight: bold">@@ -771,7 +779,7 @@ int main(int argc, char *argv[])</span>
                         char buf[1024] = &quot;&quot;;
                         int i = 0;
 
<span style="color: #A00000">-                        fprintf(stderr, &quot;Error: stacksize %d is too large: run ulimit -s %d or run %s -waste.\nauto-adjusting stack size for optimal performance...\n&quot;,</span>
<span style="color: #00A000">+                        fprintf(stderr, &quot;Error: stacksize %d is too large: run ulimit -s %d from your shell before starting the application.\nauto-adjusting stack size for optimal performance...\n&quot;,</span>
                                         (int) (rlp.rlim_max / 1024), SWITCH_THREAD_STACKSIZE / 1024, local_argv[0]);
                         
                         memset(&amp;rlp, 0, sizeof(rlp));
</pre></div>
========================================================================<pre>

Summary of changes:
 src/switch.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
</pre>
<p>this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email<br />
For more info, see <a href="http://blog.chomperstomp.com/?p=630">http://blog.chomperstomp.com/?p=630</a>
-- <br />
FreeSWITCH Source</p>