On Sat, Jun 4, 2011 at 00:37, Matthias Bolte <matthias.bo...@googlemail.com> 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