delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/12/18:03:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4AFC942B.2080708@bopp.net>
Date: Thu, 12 Nov 2009 17:03:07 -0600
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Suggestion: Have setup.exe warn before upgrading 'cgywin' package itself
References: <26327934 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <26327934.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

aputerguy wrote:
> Currently when upgrading the base 'cygwin' package, the installer only warns
> you midway through the installation after some files have been
> removed/replaced.
> 
> If you have other cygwin processes running, you may be left in an incomplete
> state where you can't or don't want to kill the other cygwin processes
> leaving you stuck in the middle of install while you wait to be able to
> finish or kill the existing cygwin processes. Even worse, several core
> cygwin utilities are now broken (such as 'ps') due to the partial install.
> 
> I have done this inadvertently a couple of times when 'cygwin' gets thrown
> in as a part of another intentioned download.
> 
> Today I was left in an even odder state since I ran 'setup.exe' from a bash
> prompt -- leaving me in a catch-22 since if I kill the bash processes then I
> kill setup but I can't continue until I kill the bash processes...

I think the problem is that the setup process cannot know for certain
until it actually starts replacing files that some of them are in use.
Scanning the system prior to replacing files could leave you exposed
since some files could become in use between the scan and replace
operations.  The best you could hope for is a possible warning regarding
things in use at the time of the scan, but it doesn't really help you in
all cases.

BTW, this is not only a problem for the cygwin package.  Literally any
package could have files which are in use at the time of replacement.
So any solution would need to take that into account.

-Jeremy

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