X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 85C193858437 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 22A9AUS0009384 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1646903431; bh=lx6YSffF5+dJEGHSeN1K1IOsjY8JQpTJo9xXnwZGkkU=; h=Date:From:To:Subject:In-Reply-To:References:From; b=wGIhIPBZJ5zfGoe/zBxAL+M9rRNHU60db0qr88pbuFALOCeJCYXGxALTuHRezGEog w6hoSQyVCdfNx7CaRyeAx7vZFyuSJA1sNKHord8IjLSqcAYeXRv2xIYTw6pCw000u+ DApBV0PMdnbIbx/WJcQBzlwZcthuiKPx4DckvFiUkZUZOlUTjhUoaqDYCcowl+qqhA BadVGRO0Q+qCG9QfYWIwAlnhjtEp3PtnPhBesIcQ9IxpD+hW4E8388LRX8x0q2BWfG ferJlR3ScbX1N4nnlLvz6nzIZl6tzRR2q/fk62DnAE2AMwgooOgeiNYCnTVaCUTtQB HTiJIMwCsGc/w== X-Nifty-SrcIP: [119.150.36.16] Date: Thu, 10 Mar 2022 18:10:31 +0900 From: Takashi Yano To: cygwin AT cygwin DOT com Subject: Re: keyboard problem under X and last snapshot (2022-03-01) Message-Id: <20220310181031.9b9c6d6b465fb97a34c99611@nifty.ne.jp> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-4.9 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_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Wed, 9 Mar 2022 22:24:45 +0100 Denis Excoffier wrote: > I tried the last snapshot (dated 2022-03-01), which seems to work well, until i failed to launch X/Windows, giving the > following message in a Windows popup: Failed to activate virtual core keyboard: 2 > > Under the preceding snapshot (dated 2022-02-17) everything works perfectly. > > Below the full content of the failing XWin.0.log. Any ideas? I noticed this occurs after the commit: commit 0ddf19d6ca6edf9edd7fc147124794fa9d5100e0 Author: Takashi Yano Date: Mon Feb 21 21:20:48 2022 +0900 Cygwin: pty, console: Fix handle leak which occurs on exec() error. - This patch fixes the handle leak which occurs when exec() fails with an error. The duplicated handles will be closed when the exec'ed process is terminated. However, if exec() fails, the code path does not reach to the code closing the duplicated handles. To implement this fix more appropriately, the setup, cleanup and closing pty codes which was previously located in spawn.cc are encapsulated into the fhandler_pty_slave class functions. Now, I am looking into this problem. Please wait a while. -- 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