<div dir="ltr"><font color="#333333"><font face="verdana,sans-serif">I tried that and it seems to work.</font></font><div><font class="Apple-style-span" color="#333333" face="verdana, sans-serif"><br></font></div><div><font color="#333333"><font face="verdana,sans-serif"><br>
</font></font></div><div><font color="#333333"><font face="verdana,sans-serif">---diff from git head---</font></font></div><div><font color="#333333"><font face="verdana,sans-serif"><div><br></div><div><br></div><div>@@ -385,9 +385,7 @@ SWITCH_STANDARD_API(managedrun_api_function)</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>} else {<span class="Apple-tab-span" style="white-space:pre">        </span></div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>stream->write_function(stream, "-ERR ExecuteBackground returned false (unknown module or exception?).\n");</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>mono_thread_detach(mono_thread_current());</div><div>
-#endif</div><div>+</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>return SWITCH_STATUS_SUCCESS;</div><div> }</div><div> </div><div>@@ -403,9 +401,7 @@ SWITCH_STANDARD_API(managed_api_function)</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>if (!(executeDelegate(cmd, stream, stream->param_event))) {</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Execute failed for %s (unknown module or exception).\n", cmd); </div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>mono_thread_detach(mono_thread_current());</div><div>
-#endif</div><div>+</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>return SWITCH_STATUS_SUCCESS;</div><div> }</div><div> </div><div>@@ -421,9 +417,7 @@ SWITCH_STANDARD_APP(managed_app_function)</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>if (!(runDelegate(data, session))) {</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Application run failed for %s (unknown module or exception).\n", data);</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>mono_thread_detach(mono_thread_current());</div><div>
-#endif</div><div>+</div><div> }</div><div> </div><div> SWITCH_STANDARD_API(managedreload_api_function) </div><div>@@ -438,9 +432,7 @@ SWITCH_STANDARD_API(managedreload_api_function)</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>if (!(reloadDelegate(cmd))) {</div>
<div> <span class="Apple-tab-span" style="white-space:pre">                </span>switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Execute failed for %s (unknown module or exception).\n", cmd); </div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>}</div>
<div>-#ifndef _MANAGED</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>mono_thread_detach(mono_thread_current());</div><div>-#endif</div><div>+</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>return SWITCH_STATUS_SUCCESS;</div>
<div> }</div><div><br></div><div><br></div><div><br></div><div>-----</div></font></font></div><div><font color="#333333"><font face="verdana,sans-serif"><br clear="all"></font></font>Yitzchok<br>
<br><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 10:57 AM, Jeff Lenk <span dir="ltr"><<a href="mailto:jeff@jefflenk.com">jeff@jefflenk.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Not sure how this makes sense yet. Yitzchok would you try this with only the<br>
mono_thread_detach calls removed leaving the mono_thread_attach in place and<br>
see what happens.<br>
<br>
Thanks<br>
Jeff<br>
<font color="#888888">--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/mod-managed-on-linux-centos-tp5485480p5607396.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/mod-managed-on-linux-centos-tp5485480p5607396.html</a><br>
</font><div><div></div><div class="h5">Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div></div>