X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: output warning for cygwin process running at setup__.exe To: cygwin AT cygwin DOT com References: <920600 DOT 51654 DOT qm AT web103111 DOT mail DOT kks DOT yahoo DOT co DOT jp> <9410201895 DOT 20180319024642 AT yandex DOT ru> <11025 DOT 1286 DOT qm AT web103117 DOT mail DOT kks DOT yahoo DOT co DOT jp> <774778050 DOT 20180319055609 AT yandex DOT ru> From: Brian Inglis 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