<p>N A <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19657">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">loader: Allow declined modules to be unloaded.<br><br>Currently, if a module declines to load, dlopen is called<br>to register the module but dlclose never gets called.<br>Furthermore, loader.c currently doesn't allow dlclose<br>to ever get called on the module, since it declined to<br>load and the unload function bails early in this case.<br><br>This can be problematic if a module is updated, since the<br>new module cannot be loaded into memory since we haven't<br>closed all references to it. To fix this, we now allow<br>modules to be unloaded, even if they never "loaded" in<br>Asterisk itself, so that dlclose is called and the module<br>can be properly cleaned up, allowing the updated module<br>to be loaded from scratch next time.<br><br>ASTERISK-30345 #close<br><br>Change-Id: Ifc743aadfa85ebe3284e02a63e124dafa64988d5<br>---<br>M main/loader.c<br>1 file changed, 37 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/57/19657/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19657">change 19657</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/+/19657"/><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: Ifc743aadfa85ebe3284e02a63e124dafa64988d5 </div>
<div style="display:none"> Gerrit-Change-Number: 19657 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: N A <asterisk@phreaknet.org> </div>
<div style="display:none"> Gerrit-CC: Friendly Automation </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>