<table><tr><td style="">sitter added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D29381">View Revision</a></tr></table><br /><div><div><p>Browsing the code it looks like it mmaps the file though? And when I add some strategic sleeping I can verify that file goes towards shared memory.</p>

<p>Oh, I suppose the trouble is that load gets called each ::create? Simply wrap it in a cpp class and static scope it to something maybe?</p>

<p>The finder by the way is still in disarray I've noticed. Please look at one of the more modern finds in ECM for reference. Also I think the find_library call is wrong, it should look for 'magic' not 'libmagic'</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">Each library name given to the NAMES option is first considered as a library file name and then considered with platform-specific prefixes (e.g. lib) and suffixes (e.g. .so).</pre></div>

<p>i.e. either the NAME is <tt style="background: #ebebeb; font-size: 13px;">libmagic.so</tt> (which is a file) or <tt style="background: #ebebeb; font-size: 13px;">magic</tt> (which gets platform adjusted), but probably not <tt style="background: #ebebeb; font-size: 13px;">libmagic</tt> as that is neither a file nor will the platform adjusted <tt style="background: #ebebeb; font-size: 13px;">liblibmagic.so</tt> be one.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R320 KIO Extras</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29381">https://phabricator.kde.org/D29381</a></div></div><br /><div><strong>To: </strong>meven, Frameworks, sitter, ngraham<br /><strong>Cc: </strong>pino, kde-frameworks-devel, kfm-devel, waitquietly, azyx, nikolaik, pberestov, iasensio, aprcela, fprice, LeGast00n, cblack, fbampaloukas, alexde, Codezela, feverfew, meven, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, rdieter, mikesomov<br /></div>