Re: [libvirt] mingw: test-poll pipe part fails

2011-07-19 Thread Bastien ROUCARIES
n Tue, Jul 19, 2011 at 6:54 PM, Bastien ROUCARIES wrote: > I have some code if you want that work. If you could test, I wil lsend > you. I have no time to create m4 and proper gnulib integration. It is > up to you Please test, I do not even have compiled it. > Bastien > > On Tue, Jul 19, 2011 at

Re: [libvirt] mingw: test-poll pipe part fails

2011-07-19 Thread Bastien ROUCARIES
I have some code if you want that work. If you could test, I wil lsend you. I have no time to create m4 and proper gnulib integration. It is up to you Bastien On Tue, Jul 19, 2011 at 5:44 PM, Daniel P. Berrange wrote: > On Tue, Jul 19, 2011 at 09:31:59AM -0600, Eric Blake wrote: >> On 07/19/2011

Re: [libvirt] mingw: test-poll pipe part fails

2011-07-19 Thread Eric Blake
On 07/19/2011 09:30 AM, Daniel P. Berrange wrote: I'm wondering if the problem here is that libvirt is trying to use the pipe-to-self mechanism as a fundamental event loop idiom. That is, the reason libvirt is calling poll is in order to minimize CPU until something interesting happens, where in

Re: [libvirt] mingw: test-poll pipe part fails

2011-07-19 Thread Daniel P. Berrange
On Tue, Jul 19, 2011 at 09:31:59AM -0600, Eric Blake wrote: > On 07/19/2011 09:30 AM, Daniel P. Berrange wrote: > >>I'm wondering if the problem here is that libvirt is trying to use the > >>pipe-to-self mechanism as a fundamental event loop idiom. That is, the > >>reason libvirt is calling poll i

Re: [libvirt] mingw: test-poll pipe part fails

2011-07-19 Thread Daniel P. Berrange
On Thu, Jun 30, 2011 at 11:56:15AM -0600, Eric Blake wrote: > [adding libvirt] > > On 06/04/2011 12:24 AM, Paolo Bonzini wrote: > > On Sat, Jun 4, 2011 at 00:37, Matthias Bolte > > wrote: > >> After testing a while and reading MSDN docs the problem seems to be > >> that MsgWaitForMultipleObjects

Re: mingw: test-poll pipe part fails

2011-06-30 Thread Paolo Bonzini
On 06/30/2011 07:56 PM, Eric Blake wrote: > Yes, Windows pipes are that broken.:( > > Using socketpair is a possibly good idea, but I would do it on > libvirtd only. I don't know exactly how libvirtd uses this pipe, but > perhaps it can be changed to an eventfd-like abstraction that can be >

Re: mingw: test-poll pipe part fails

2011-06-30 Thread Eric Blake
[adding libvirt] On 06/04/2011 12:24 AM, Paolo Bonzini wrote: > On Sat, Jun 4, 2011 at 00:37, Matthias Bolte > wrote: >> After testing a while and reading MSDN docs the problem seems to be >> that MsgWaitForMultipleObjects doesn't work on pipes. It doesn't >> actually wait but just returns immedi

Re: mingw: test-poll pipe part fails

2011-06-03 Thread Paolo Bonzini
On Sat, Jun 4, 2011 at 00:37, Matthias Bolte wrote: > After testing a while and reading MSDN docs the problem seems to be > that MsgWaitForMultipleObjects doesn't work on pipes. It doesn't > actually wait but just returns immediately. Digging MSDN and googling > about this suggest that there is no

Re: mingw: test-poll pipe part fails

2011-06-03 Thread Matthias Bolte
2011/5/25 Matthias Bolte : > Output from a test run on mingw > > Unconnected socket test... passed > Connected sockets test... passed > General socket test with fork... passed > Pipe test... failed (expecting POLLHUP after shutdown) > FAIL: test-poll.exe > > This affects the attempt to make libvirt

mingw: test-poll pipe part fails

2011-05-25 Thread Matthias Bolte
Output from a test run on mingw Unconnected socket test... passed Connected sockets test... passed General socket test with fork... passed Pipe test... failed (expecting POLLHUP after shutdown) FAIL: test-poll.exe This affects the attempt to make libvirtd working on Windows. libvirtd relies on po