DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 462AjjGg1296076 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=a6NOFKHm X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52BEE3849785 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1719917143; bh=bpZHm3axqea7e+WaIn2BPXKfcLjqr0Uz3wy3jmWFvhw=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=a6NOFKHmetPFeAmD6XeKKHrnjuEvJP0utOGTvOxdQmSSo+G3nyOnwBzFQOAwp5q2o CfkFXIMoRZ6k8ch8W4Tsm+Xphq6ONqwrNfMH/aqhjBRIJfJxBzohFa/TbkRoJuJ2Nw sE/ZfyiiIPhjFNTdaUz2gLa/PBNGbqyfwktxZvBQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C4C63882046 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3C4C63882046 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719917121; cv=none; b=iav0k4t/cNxAtD9dznJUYeoNN07e+4AGo49tgi2lCPa8AKvaIaOLiEEy07VqKtjsIGfTzOH8J0ZNEIUsJf1+FTruZUw6iJQ0ehz5durKLhI0dZ2LEuZ+tXQcaUmUY7YpJROiabmfSohBMoqCDw99yaY1BlxPvPgAhlqO/3R+aKc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719917121; c=relaxed/simple; bh=tiPtUjdnM342liCSEJCp3MdvC3n1PJI5dl+ZKYH90Po=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=Sp7K4465ldkYNupj+NQMgbr6hta45FSFI7aEZycy7nAArLvVo9549XOQKVMJZUZfGTBW+uY3Qw00ZHfd3kryPo7JnPIfftIPLgjimoDZKZ5r5wIuSZcEby/QJyQGgj6VyZa3FmawqUtIloi0rhQ7Be2qHk8OeCWhZYta8Jgq9b8= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Tue, 2 Jul 2024 19:45:15 +0900 To: cygwin AT cygwin DOT com Subject: Re: cygwin application hangs on closing console Message-Id: <20240702194515.01a1e2cf1f2378b412ad3712@nifty.ne.jp> In-Reply-To: <20240701222020.bf102502bb184e4b30f1c52b@nifty.ne.jp> References: <20240423035104 DOT 85352f8a8d821c0f4d569d18 AT nifty DOT ne DOT jp> <20240423192606 DOT 7b4aa04685afca2525eb5ed3 AT nifty DOT ne DOT jp> <6dd8a568-88c0-42d5-aa46-b09247cdecec AT johannesthoma DOT com> <5ed3b0b8-d4f8-454c-951a-fc7b85a7c302 AT johannesthoma DOT com> <95442cfe-a87c-4816-b337-b130e481e3f1 AT johannesthoma DOT com> <20240628211726 DOT c131e0a300046d1fa46f6b53 AT nifty DOT ne DOT jp> <20240629003209 DOT d0bd3cc2961891fb69b55b35 AT nifty DOT ne DOT jp> <20240701222020 DOT bf102502bb184e4b30f1c52b AT nifty DOT ne DOT jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham 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: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Mon, 1 Jul 2024 22:20:20 +0900 Takashi Yano wrote: > On Mon, 1 Jul 2024 13:47:56 +0200 > Johannes Khoshnazar-Thoma wrote: > > Note that the hang does not happen when just running cygwin > > applications via terminal windows (like cmd, powershell and > > MinTTY). It triggers however when a cygwin application is > > run both as a service (I think as SYSTEM account, but I > > can ask again) and from a terminal window. > > Service process usually does not have console. So I think > fhandler_console::open()/close() are not called. > > Do you allocate console for your service process somehow? I could reproduce your problem by allocating console for service process. I'll look into the problem. Thanks. -- Takashi Yano -- 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