<table><tr><td style="">rjvbb 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/D16218">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;"><ul class="remarkup-list">
<li class="remarkup-list-item">Why does this patch look so much more verbose than the solution proposed on <a href="http://doc.qt.io/qt-5/unix-signals.html" class="remarkup-link" target="_blank" rel="noreferrer">http://doc.qt.io/qt-5/unix-signals.html</a>?</li>
</ul></blockquote>
<p>Probably because it's a patch against existing code, which needs changes due to the fact that I thought I'd had to avoid static globals.</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><ul class="remarkup-list">
<li class="remarkup-list-item">Why the alternative implementations? Why do we need to the non-QSocketNotifier variant? You realize that every "alternative solution" or <tt style="background: #ebebeb; font-size: 13px;">#ifdef</tt> puts more maintenance burden on us?</li>
</ul></blockquote>
<p>Who said I wanted to have both committed - the title has <tt style="background: #ebebeb; font-size: 13px;">WIP</tt> in it for a reason?! I've explained why there are 2 alternatives (re-read goal 2). There's another reason why avoiding QSocketNotifier could be useful: using a semaphore doesn't require spending 2 file descriptors on something you might never need (it isn't hard to run into the open fd limit with KDevelop, esp. when not running Linux).</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Should be a separate patch, I suppose that's close to a one-line patch against the current code base.</p></blockquote>
<p>Which is also why it could be just as well part of a complete overhaul of the whole signal handling stuff, IMHO.</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Side note: All the signal handling functionality should be factored out into classes/functions as much as possible in order to simplify the code (cf. <a href="http://doc.qt.io/qt-5/unix-signals.html" class="remarkup-link" target="_blank" rel="noreferrer">http://doc.qt.io/qt-5/unix-signals.html</a> again -- it does that nicely).</p></blockquote>
<p>Which goes against the principle used otherwise to avoid global symbols and stuff everything of that sort into classes...</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16218">https://phabricator.kde.org/D16218</a></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop, kfunk<br /><strong>Cc: </strong>brauch, kfunk, arrowd, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight<br /></div>