On 04/08/2011 11:33 AM, Eric Blake wrote:
> * modules/pipe2 (Depends-on): Add nonblocking.
> * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
> * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
>
> +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
> +/* Native Woe32 API. */
> +
> + if (flags & O_NONBLOCK)
> + {
> + int result = _pipe (fd, 4096, flags & O_NONBLOCK);Oops, that should be flags & ~O_NONBLOCK. Also, test-pipe2 was leaking fds. -- Eric Blake [email protected] +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
