delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/04/05:28:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sat, 4 Sep 2010 11:28:34 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.5: Occasional failure of CreatePipe or signal handing due to thread-unsafe code in cwdstuff::set
Message-ID: <20100904092834.GF16534@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3C031C390CBF1E4A8CE1F74DE7ECAF3A140684F0AA AT MBX8 DOT EXCHPROD DOT USA DOT NET> <20100811084926 DOT GC26152 AT calimero DOT vinschen DOT de> <3C031C390CBF1E4A8CE1F74DE7ECAF3A140684F0B0 AT MBX8 DOT EXCHPROD DOT USA DOT NET> <AANLkTimpBCKzUioEarGiKMQbTjN+6s9iDYm_zzZ2Lxr9 AT mail DOT gmail DOT com> <20100812081151 DOT GT14202 AT calimero DOT vinschen DOT de> <3C031C390CBF1E4A8CE1F74DE7ECAF3A158EDA702A AT MBX8 DOT EXCHPROD DOT USA DOT NET> <20100903073740 DOT GA1749 AT calimero DOT vinschen DOT de> <AANLkTik-hrtsE=sq35t3G46DDd_+Y_r7aRWtiavGq0er AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTik-hrtsE=sq35t3G46DDd_+Y_r7aRWtiavGq0er@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Sep  3 17:36, Andy Koppe wrote:
> On 3 September 2010 08:37, Corinna Vinschen wrote:
> > I still don't like the final workaround, which is, to set the Win32 CWD
> > to the Cygwin CWD.  It would be nice if we could revert that change to
> > the pre-1.7.6 behaviour in a Vista-friendly way.  If you ever find out
> > how to make sure that the new handle in the PEB's user parameter block
> > is used even on Vista and later, pray tell me.
> 
> I haven't got the magic bullet of course, but since we do have a way
> to make Win32-using programs work with just a relink, how about this
> transition scheme:
> 
> - Add the previously suggested CYGWIN option for syncing the Win32
> working directory, with two settings: on and off. Default to on for
> the moment. That would allow people like Daniel Colascione to switch
> it off if they don't care about the resulting failures in cygutils and
> elsewhere.
> - Implement the -lsynccwd scheme.
> - Notify maintainers about the rebuild that's necessary if their
> packages use Win32 APIs. Rebuild cygutils, git, and tcltk as soon as
> possible.
> - In a few months, switch the default to not sync, and hence allow
> working directories to be deleted., and which point. Affected programs
> that haven't been rebuilt could still be made to work by switching the
> option back on.

That might work in the long run, but if there's any chance to get this
automatically, as in 1.7.5, but without the Vista handle problem, I'd
prefer it over any other workaround.  For the time being, we have the
EBUSY, but we can at least take comfort that it's backed by POSIX.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019