<table><tr><td style="">jtamate updated this revision to Diff 38387.<br />jtamate edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-gzdtfobbddvwudl/">(Show Details)</a><br />jtamate 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/D14302">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>I said from the start that it wasn't tryLock() that was blocking but lock(), good to see that this is now confirmed.</p></blockquote>

<p>I trusted blindly in gdb stacktrace, and also I didn't understood, again, the code.</p>

<p>Added your description as comments.</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Try to lock only once, if succeed then make the call to dbus, and then release the lock, the rest of the method doesn't need to be locked</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Add more comments to the code.<br />
Start kdeinit5 asynchronously so the lock is always released (in the destructor)</span>.</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R271 KDBusAddons</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D14302?vs=38372&id=38387">https://phabricator.kde.org/D14302?vs=38372&id=38387</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14302">https://phabricator.kde.org/D14302</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kdeinitinterface.cpp</div></div></div><br /><div><strong>To: </strong>jtamate, dfaure, Frameworks, thiago<br /><strong>Cc: </strong>lvsouza, kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>