delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/20/10:33:32

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 20 Aug 2010 16:33:17 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: vim-7.3.003-1
Message-ID: <20100820143317.GD11340@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <announce DOT 20100819185447 DOT GW11340 AT calimero DOT vinschen DOT de> <4C6DAD71 DOT 106 AT acm DOT org> <20100820082433 DOT GA28236 AT calimero DOT vinschen DOT de> <i4lqbd$s6v$1 AT dough DOT gmane DOT org> <20100820123708 DOT GC11340 AT calimero DOT vinschen DOT de> <i4m0gv$7rj$1 AT dough DOT gmane DOT org> <i4m30p$7rj$2 AT dough DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <i4m30p$7rj$2@dough.gmane.org>
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 Aug 20 16:21, Thorsten Kampe wrote:
> * Thorsten Kampe (Fri, 20 Aug 2010 15:38:26 +0200)
> > I reinstalled vim and got the exact same message again ("Unable to 
> > extract /usr/bin/vi -- the file is use."). A simultaneous process 
> > monitor log shows that CreateFile operations result in "DELETE PENDING" 
> > ("Desired Access: Read Control, Disposition: Open, Options: Open Reparse 
> > Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: 
> > n/a"). Clicking two times on Retry (without changing anything else) 
> > let's the installation continue.
> > 
> > I ran Process Explorer and it looks like zsh has handles open to vi, 
> > vim, view and vimdiff - although these executables are definitely not 
> > running.
> 
> Okay, coming closer (and getting weirder):

Not weird at all.  I could track this down to a point in Cygwin where
it neglects to close a handle to a symlink when instructed to follow
symlinks to their target.  I checked in a patch.  Please test the DLL
I uploaded at

  http://cygwin.de/cygwin-ug-177/newer-cygwin1.dll.bz2
  (md5sum compressed   5eab6680538279206bf23c54244825d2)
  (md5sum uncompressed e4833a601edad1571a9c6e0352a8e381)

which contains the fix.  This should not leave the stray handles to
vi, vim, etc in zsh.  And the side-effect should be that setup.exe
does not complain anymore in the original scenario.


Thanks,
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