X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4943382EA07 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1700431447; bh=aTpJ+60gIoxboRcKn5MinQPXdRYwzOmu1mHG4VDGxOc=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=SQzZJJa3n7jO7D1xj/AvGQg2lk6bfkqYXL0dJzSqrJIjXLR1QRj92o6T6dyo4Gb6d Vwo22AVCwdYFAv+F2mH0nVlngc0jHqTJdk7xe2vgNdGGJErc/E9OaUM7Ds33JBM+cf 8EmXENOqDm4j6L7pNg3BmpfyRR42rRYfoZDX6lxY= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C73F43876079 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C73F43876079 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700431434; cv=none; b=boYFNFPytLPUqZzX087HLEarwwerhYtYwbmWLshn32t1txpc6R+lBsRk5HGEBNVT2f37lyo/RvjSwxe+oISqbHFr9lQo5eI6y9I2JVz+1QIbHxdA9046eMQOv78tqTftzIzryh6SPCqoZe5kdOO49GReS3OTu5zGJ6DSwBA8Xg8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700431434; c=relaxed/simple; bh=PvLBZURAHLyE2/ICIrAZIB6C09moI9/IsvClPvBlFxc=; h=Message-ID:Date:MIME-Version:From:Subject:To; b=VVM0/HNYjYRrKnNmwkP9hc9znIMPG+67Qsds/GsjAAzNQ3XBm27QcIL5JZHRsFdwQyXXTERZF+8zkXLJxsmbhRobnAHsYj6bQNWSYgGtt7yIY1kyjwfIobLLrJUlkrmJrED5EKW46C082O3RHuDu+BWlXYiZ3DMO94kr2qvugPg= ARC-Authentication-Results: i=1; server2.sourceware.org X-SNCR-Rigid: 64C837300BB72DC2 X-Originating-IP: [81.153.98.243] X-OWM-Source-IP: 81.153.98.243 (GB) X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvkedrudeggedgudehiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfhffuvfhfjggtgfesthekredttddvjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepvdetvedvuedufeeuudehjeeutddtgeeuffekgeekiedvhedtteelhfeftedvleegnecuffhomhgrihhnpegthihgfihinhdrtghomhenucfkphepkedurdduheefrdelkedrvdegfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtjegnpdhinhgvthepkedurdduheefrdelkedrvdegfedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgtphhtthhopehmrghrthhinhdrlhdrfigvghgvsehgmhgrihhlrdgtohhmpdhrvghvkffrpehhohhsthekuddqudehfedqleekqddvgeefrdhrrghnghgvkeduqdduheefrdgsthgtvghnthhrrghlphhluhhsrdgtohhmpdgruhhthhgpuhhsvghrpehjohhnthhu rhhnvgihsegsthhinhhtvghrnhgvthdrtghomhdpghgvohfkrfepifeupdfovfetjfhoshhtpehsrgdqphhrugdqrhhgohhuthdqtddtud X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Message-ID: Date: Sun, 19 Nov 2023 22:03:50 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: setup-x86_64.exe (bug ?): Cannot write to /usr/bin/cygwin1.dll - cyserver squatting it... To: Martin Wege , The Cygwin Mailing List References: <1594716181 DOT 20231115200144 AT yandex DOT ru> Content-Language: en-GB In-Reply-To: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jon Turney via Cygwin Reply-To: Jon Turney Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3AJM49hl025496 On 16/11/2023 07:03, Martin Wege via Cygwin wrote: > On Wed, Nov 15, 2023 at 6:05 PM Andrey Repin via Cygwin > wrote: >> [...] >> >>> ---- snip ---- >>> Unable to extract /usr/bin/cygwin1.dll -- error writing file >>> ---- snip ---- >> >>> The fix is to do a $ sc stop cygserver # as Administrator, then >>> "setup-x86_64.exe" can write to that file, and after "setup" is done do a $ sc start cygserverr # as Admin again. >> >>> ... is it possible to modify "setup-x86_64.exe" to stop cygserver before >>> doing the installation process and re-start it after it ? Yes, the source code is available. :) >> There's no reason to do so, as there's no easy way to detect beforehand, if >> you actually need to do so. > > sc query cygserver is EASY to detect. Unfortunately, this is not what's actually needed: To generically detect a service which (is the parent of) a process which has a file which setup wants to update open. That said, I'd certainly be open to patches which improve matters without solving the problem with full generality, but just observing they are "EASY" doesn't bring them into existence... Anyhow, you can see the old discussion about how we might add this feature back when I added the current limited support for terminating processes which have needed files open. starting at [1]. Perhaps someone cleverer or more diligent than me will progress this... [1] https://cygwin.com/pipermail/cygwin-apps/2013-February/031448.html -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple