bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] pipe, pipe2: don't corrupt fd on error


From: Eric Blake
Subject: Re: [PATCH] pipe, pipe2: don't corrupt fd on error
Date: Wed, 29 Jun 2011 17:13:32 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 06/29/2011 04:00 PM, Eric Blake wrote:
> I don't know of any race-free way to work around a cygwin crash:
> http://cygwin.com/ml/cygwin/2011-06/msg00328.html - we could
> always open() and then close() two fds to guess whether two
> spare fd still remain before calling pipe(), but that is racy.

And without a race-free way to work around the cygwin bug, I don't know
of any way to test this particular property of pipe in the gnulib unit
tests.  I guess we could modify the unit tests and #ifdef that portion
out if we detect broken cygwin (hopefully cygwin 1.7.10 will be fixed).

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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