X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=xadVTG5W27Z6NGMa
	E5YfK4SzweWhzYhRv5BlLsYF4PEbIq7Td0QAtpf2lp/slSGfyihrJOUCU0pIQi4O
	4FuqtMxmU1IbuQc+jDe+cbW3v4OPa3hnvHUS/zg6vZAT05+8gWhYnceIZMnlrgGP
	bO8OAjiRTosDP/NJHH3V8/3AJAs=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=luvXjheVLRikJWj8S0Gyzr
	nZCxQ=; b=lH9k1z1cazr+ws4sZ2ejBlO4SDc9NZVA3FWZa5nR89DBbnkJjP3DAC
	vyXmxt4LEu9ZKMQbVfy/bVDS23oCaNN/WsBVPCEeXBNBfXM0pS5vdV5d/ITbeob+
	x++PVhvWM+I0FvAEfzIZWcUIFwIzbco0Ce/GXIuMh3SF3bjp7rN2Q=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*RU:!192.168.1.100!, H*r:ip*192.168.1.100, Hx-spam-relays-external:!192.168.1.100!, Hx-languages-length:1502
X-HELO: smtp-out-no.shaw.ca
X-Authority-Analysis: v=2.3 cv=Tai4SyYh c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=fpAOSEmNAAAA:8 a=Ibii-x6kP5NMyqmyKWgA:9 a=QEXdDO2ut3YA:10
Reply-To: Brian.Inglis@SystematicSw.ab.ca
Subject: Re: output warning for cygwin process running at setup__.exe
To: cygwin@cygwin.com
References: <920600.51654.qm@web103111.mail.kks.yahoo.co.jp> <9410201895.20180319024642@yandex.ru> <11025.1286.qm@web103117.mail.kks.yahoo.co.jp> <774778050.20180319055609@yandex.ru>
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Message-ID: <4afd0f8f-f3fd-d41f-1e82-2beb0804f109@SystematicSw.ab.ca>
Date: Sun, 18 Mar 2018 21:56:25 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
MIME-Version: 1.0
In-Reply-To: <774778050.20180319055609@yandex.ru>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-CMAE-Envelope: MS4wfKSysCpvON7raFkbJoRqNIi5uhgK8gcELhA+UIcMMeNpok1MHvzh4s8tE8x5d/wr7vhLM67NxIgHoDMsxeb+XS97O4dY4AeLbBCMXao9nCN+EzAUAqiZ e+YiDw/hkrpucfBAR/H0OAvFqWFf/r7yEBp+1HTp2+VeOjPdf0/Hjj6wbYWB0WN/tYjvo1G2VVpPDQ==
X-IsSubscribed: yes

On 2018-03-18 20:56, Andrey Repin wrote:
>>>> On cygwin setup, one has to kill cygwin process to execute autorebase 
>>>> in the end of setup process. I think it is better to output warning at
>>>> start stage setup if cygwin process running.

>> Sorry for my inadequate description.
>> At postinstall stage, cygwin setup execute
>> /etc/postinstall/0p_000_autorebase.dash,
>> this sometimes fails when Cygwin process(es) is(are) alive.
>> Acooding to http://cygwin.wikia.com/wiki/Rebaseall,
>> we have to kill or stop cygwin porcesses and sevices before rebase.
>> This is why I propose that warning messages in pre-install stage in cygwin setup.
> 
> Sounds about right.
> If there's an existing Cygwin install, it is possible to run ps.exe and see if
> it find any running Cygwin processes before attempting an update.

If there's not an existing Cygwin install, you don't really have to worry too
much about Cygwin processes running. ;^>

The docs all recommend killing all Cygwin processes *before* running setup, as
setup can not replace running exes and active dlls during the installation
phase, before postinstall rebase of replaced dlls.

If setup can not replace any exe or dll, it warns you have to restart your
system to complete the replacement. After the restart, you then have to rerun
setup with no Cygwin processes running to successfully rebase replaced dlls.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

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

