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@delorie.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@cygwin.com
Delivered-To: cygwin@cygwin.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@cygwin.com
Subject: Re: cygwin application hangs on closing console
Message-Id: <20240701222020.bf102502bb184e4b30f1c52b@nifty.ne.jp>
In-Reply-To: <fb960e5d-ccdd-474b-a046-5178563d4200@johannesthoma.com>
References: <d268ca90-3c5b-4de6-9dd5-320ee713283c@johannesthoma.com>
 <20240423035104.85352f8a8d821c0f4d569d18@nifty.ne.jp>
 <b71816f0-633c-4eaf-b9d6-955b10e4866a@johannesthoma.com>
 <20240423192606.7b4aa04685afca2525eb5ed3@nifty.ne.jp>
 <6dd8a568-88c0-42d5-aa46-b09247cdecec@johannesthoma.com>
 <b67fc4f5-3fbb-454a-a0ce-da4f987924dc@johannesthoma.com>
 <d00f900a-e70c-4a2b-9570-0d3c9fcd45d2@SystematicSW.ab.ca>
 <5ed3b0b8-d4f8-454c-951a-fc7b85a7c302@johannesthoma.com>
 <95442cfe-a87c-4816-b337-b130e481e3f1@johannesthoma.com>
 <20240628211726.c131e0a300046d1fa46f6b53@nifty.ne.jp>
 <20240629003209.d0bd3cc2961891fb69b55b35@nifty.ne.jp>
 <fb960e5d-ccdd-474b-a046-5178563d4200@johannesthoma.com>
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@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin@cygwin.com>
Reply-To: Takashi Yano <takashi.yano@nifty.ne.jp>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

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 <takashi.yano@nifty.ne.jp>

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