<div dir="ltr">Hi Holger,<div><br></div><div> let's collaborate on this. You and I and lots of others want this to be done. But in fixing the below bug my priorities are to</div><div>a) deliver a fix promptly</div><div>b) write the code so that either kqueue or epoll or select will be used based on HAVE_KQUEUE & HAVE_EPOLL defines</div><div><br></div><div>So if I deliver a fix don't think that I'm against having a proper event-driven or idling VM, I just don't have it in my head yet and want the bug fixed and kqueue/epoll available asap.<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 24, 2016 at 11:42 PM, Holger Freyther <span dir="ltr"><<a href="mailto:holger@freyther.de" target="_blank">holger@freyther.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On 25 Mar 2016, at 00:35, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>
><br>
<br>
<br>
Dear Eliot,<br>
<span class=""><br>
<br>
> Fabulous, thank you! replace the self halts with e.g. self assert: (clientSocket dataAvailable = (clientSocket readSemaphore excessSignals > 0)), and we even have a test. I have work to do tomorrow but hope I should be able to debug this soon. I'll add kqueue and epoll support when I fix it.<br>
<br>
</span>before going to kqueue, could you have a look at my hack to create a completely idle VM? Once the VM has moved to kqueue it seems one can not get a SIGIO for the "kqueue descriptor"[1] itself and I don't know if SIGIO remains working for the individual file descriptors.<br>
<br>
holger<br>
<br>
<br>
[1] <a href="https://github.com/freebsd/freebsd/blob/master/sys/kern/kern_event.c#L1735" rel="noreferrer" target="_blank">https://github.com/freebsd/freebsd/blob/master/sys/kern/kern_event.c#L1735</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div></div>