FYI,<br><br>You're adding redundant calls to pthread_attr_destroy in apps/app_rpt.c in that patch (see below).<br><br>Sean<br><br><div><span class="gmail_quote"></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Modified: trunk/apps/app_rpt.c<br>URL: <a href="http://svn.digium.com/view/asterisk/trunk/apps/app_rpt.c?view=diff&rev=53047&r1=53046&r2=53047">http://svn.digium.com/view/asterisk/trunk/apps/app_rpt.c?view=diff&rev=53047&r1=53046&r2=53047
</a><br>==============================================================================<br>--- trunk/apps/app_rpt.c (original)<br>+++ trunk/apps/app_rpt.c Wed Jan 31 15:35:15 2007<br>@@ -3188,6 +3188,7 @@<br> pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
<br> ast_pthread_create(&myrpt->rpt_call_thread, &attr, rpt_call, (void *) myrpt);<br><span style="font-weight: bold;"> pthread_attr_destroy(&attr);</span><br style="font-weight: bold;"><span style="font-weight: bold;">
+ pthread_attr_destroy(&attr);</span><br style="font-weight: bold;"> return DC_COMPLETE;<br> }<br><br>@@ -5540,6 +5541,7 @@<br> pthread_attr_init(&attr);<br> pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
<br> ast_pthread_create(&myrpt->rpt_call_thread, &attr, rpt_call, (void *)myrpt);<br><span style="font-weight: bold;">+ pthread_attr_destroy(&attr);</span><br style="font-weight: bold;">
<span style="font-weight: bold;"> pthread_attr_destroy(&attr);</span><br style="font-weight: bold;"> return;<br> }<br>@@ -6736,6 +6738,7 @@<br> pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
<br> ast_pthread_create(&rpt_vars[i].rpt_thread, &attr, rpt, (void *) &rpt_vars[i]);<br><span style="font-weight: bold;"> pthread_attr_destroy(&attr);</span><br style="font-weight: bold;">
<span style="font-weight: bold;">+ pthread_attr_destroy(&attr);</span><br style="font-weight: bold;"> }<br> usleep(500000);<br> for (;;) {<br>@@ -6764,6 +6767,7 @@<br> pthread_attr_init(&attr);
<br> pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);<br> ast_pthread_create(&rpt_vars[i].rpt_thread, &attr, rpt, (void *) &rpt_vars[i]);
<br><span style="font-weight: bold;">+ pthread_attr_destroy(&attr);</span><br style="font-weight: bold;"><span style="font-weight: bold;"> pthread_attr_destroy(&attr);
</span><br style="font-weight: bold;"> ast_log(LOG_WARNING, "rpt_thread restarted on node %s\n", rpt_vars[i].name);<br> }</blockquote><div><br><br></div></div>
sean