delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/07/02/06:45:46

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: <d268ca90-3c5b-4de6-9dd5-320ee713283c AT johannesthoma DOT com>
<20240423035104 DOT 85352f8a8d821c0f4d569d18 AT nifty DOT ne DOT jp>
<b71816f0-633c-4eaf-b9d6-955b10e4866a AT johannesthoma DOT com>
<20240423192606 DOT 7b4aa04685afca2525eb5ed3 AT nifty DOT ne DOT jp>
<6dd8a568-88c0-42d5-aa46-b09247cdecec AT johannesthoma DOT com>
<b67fc4f5-3fbb-454a-a0ce-da4f987924dc AT johannesthoma DOT com>
<d00f900a-e70c-4a2b-9570-0d3c9fcd45d2 AT SystematicSW DOT ab DOT ca>
<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>
<fb960e5d-ccdd-474b-a046-5178563d4200 AT johannesthoma DOT com>
<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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

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 <takashi DOT yano AT nifty DOT ne DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019