bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mingw: test-poll pipe part fails


From: Paolo Bonzini
Subject: Re: mingw: test-poll pipe part fails
Date: Sat, 4 Jun 2011 08:24:51 +0200

On Sat, Jun 4, 2011 at 00:37, Matthias Bolte
<address@hidden> 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 simple solution to this.

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
used with both Windows and Unix.  This is similar to Eric's
suggestion, but without the pipe at all.  It would also be a
libvirtd-specific suggestion.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]