DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 461DOxDF856581 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=x20DjHZJ X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11AD838114CB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1719840297; bh=8AaXOP9dw5kSrUVpFS+svycmQUXmDoxvbsXYXosAjmc=; 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=x20DjHZJHH1VcpfCkSS9/SUzmaDOZWgEJY5EbsOIc8JVOyjfooFupb/dQ4eJbwY22 AhZkLhLRTq5YZvLgM1TFNHnvTgOJMazw49n3wQ9Wa3ClJ+jE0mH2cTSU4goMgXcXGZ YUR5DBnxKM2fSKupPsyu3pSYHdLU8ZZm+cL9KxyY= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 91F62381028C ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 91F62381028C ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719840036; cv=none; b=U6MrSaqfgdU9o+RtctiECm8EOAMJ2t2k2fa5xF7BPkJSW2wlDIptukGETyYCaAgsqbhg8TaMxKs3VbwpYgXUonx/7unlOBcc2asvC10gHTMebAWrNmmf3luIfqvXlPQNuxCuUBxO+nG/nCSfNsdJMEemSqV7gCxkB50SXeecKg4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719840036; c=relaxed/simple; bh=iDCPuOlTbAUERaSWE+ipxTjKqW0ZPl5FsgeYboXpA+s=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=DBvH3gL1zPbEniLrJzk+DfUiW0+AwYg3YBp18T5Zf50UpfBs18YilzJ4PLmCl+n+of6z9OyRM4Qxjih6WYjP/Bf/R2Mxbnmn0HwaDe0ibJTwwcFJkZ+nRY/N6citUjCoIlX/NbD0ylcEhJDuFbyDcmAIIqhumtV/D27DMdnS3Og= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Mon, 1 Jul 2024 22:20:20 +0900 To: cygwin AT cygwin DOT com Subject: Re: cygwin application hangs on closing console Message-Id: <20240701222020.bf102502bb184e4b30f1c52b@nifty.ne.jp> In-Reply-To: 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> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-4.1 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 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? -- 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