<p>Mark Murawski has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16350">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pbx_ael:  Fix possible crash and serious lockup issue regarding 'ael reload'<br><br>Currently pbx_ael does not check if a reload is currently pending<br>before proceeding with a reload. This can cause multiple threads to<br>operate at the same time on what should be mutex protected data.  This<br>change adds a reload mutex and prevents multiple reloads from occuring<br>simultaneously.<br><br>ASTERISK-29609 #close<br><br>Change-Id: Ieb3b5c35fd564d84d05d6e7ea9255f792d81c35a<br>---<br>M pbx/pbx_ael.c<br>1 file changed, 1 insertion(+), 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/50/16350/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c</span><br><span>index d55f2d4..28242f3 100644</span><br><span>--- a/pbx/pbx_ael.c</span><br><span>+++ b/pbx/pbx_ael.c</span><br><span>@@ -245,7 +245,7 @@</span><br><span>      if (a->argc != 2)</span><br><span>                 return CLI_SHOWUSAGE;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-       return (pbx_load_module() ? CLI_FAILURE : CLI_SUCCESS);</span><br><span style="color: hsl(120, 100%, 40%);">+       return ast_module_reload("pbx_ael") == AST_MODULE_RELOAD_SUCCESS ? CLI_SUCCESS : CLI_FAILURE;</span><br><span> }</span><br><span> </span><br><span> static struct ast_cli_entry cli_ael[] = {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16350">change 16350</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/16350"/><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-Change-Id: Ieb3b5c35fd564d84d05d6e7ea9255f792d81c35a </div>
<div style="display:none"> Gerrit-Change-Number: 16350 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Mark Murawski <markm@intellasoft.net> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>