On 04/10/2011 08:12 PM, Bruno Haible wrote: > Hi Eric, > > I was a bit suspicious whether non-blocking I/O on Woe32 sockets really work. > So I set out to write a unit test for it. Sockets are a bit more complicated > than pipes, so I started with the pipes. > > Find attached this unit test - for testing, not yet ready to be committed -. > > Can you please review it? The test passes on Linux, FreeBSD, OpenBSD, MacOS X, > but fails on Solaris 2.6, OSF/1 5.1, IRIX 6.5, Cygwin 1.5 and 1.7, and mingw.
Which version of cygwin did you test? It passed for me on cygwin 1.7.9 (but cygwin 1.7.9 introduced a broken strchrnul, so I'll have to fix that...) > > If already non-blocking pipes are buggy on so many platforms, what do we have > to expect from non-blocking sockets...? > > Or maybe you can find a problem with my test, that I didn't see? Not on my first glance, but can you enumerate the actual failures? -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature