<table><tr><td style="">tcberner retitled this revision from "Include signal.h for kill(), and prototype kqueue/kevent stuff..." to "kcheckpass: Add support in for non-Linux platforms via kevent.".<br />tcberner edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-u2qxxxwrobxewrb/" rel="noreferrer">(Show Details)</a>
</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/D5825" rel="noreferrer">View Revision</a></tr></table><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);">All there in the title....</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">* signalfd() is a Linux specific api:<br />
  SIGNALFD(2):<br />
```<br />
   CONFORMING TO         top<br />
<br />
   signalfd() and signalfd4() are Linux-specific.<br />
```<br />
* FreeBSD and OSX and others can use the widely available kevent/kqueue api for a similar effect.<br />
<br />
<br />
We let the kernel notify us via kevent() [1],</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">ok</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">if there is a SIGUSR1 or SIGUSR2</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">or not. Because arc diff is hard.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">and then fetch the signal using sigwaitinfo() [2].<br />
<br />
[1] https://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2<br />
[2] https://www.freebsd.org/cgi/man.cgi?query=sigwaitinfo&sektion=2</span><br />
<br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">I just meant to diff the change to `greeter/authenticator.cpp`, but now that it is all here already, let's just call this a prototype, for someone who knows C/kevent/kqueue to fix.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Note: I still have to test this modified version =)</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R133 KScreenLocker</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5825" rel="noreferrer">https://phabricator.kde.org/D5825</a></div></div><br /><div><strong>To: </strong>tcberner, FreeBSD, graesslin<br /><strong>Cc: </strong>adridg, davidedmundson, plasma-devel, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas<br /></div>