From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64819: 30.0.50; condition-wait not interruptible Date: Mon, 24 Jul 2023 15:10:24 +0300 Message-ID: <83pm4hse6n.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36961"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64819@debbugs.gnu.org To: Helmut Eller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 24 14:11:10 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qNuP8-0009RN-OC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jul 2023 14:11:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNuP1-0004fj-JP; Mon, 24 Jul 2023 08:11:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNuP0-0004fR-ES for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 08:11:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qNuP0-0004Dw-6f for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 08:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNuP0-0000Y4-2K for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 08:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jul 2023 12:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64819 X-GNU-PR-Package: emacs Original-Received: via spool by 64819-submit@debbugs.gnu.org id=B64819.16902006072034 (code B ref 64819); Mon, 24 Jul 2023 12:11:02 +0000 Original-Received: (at 64819) by debbugs.gnu.org; 24 Jul 2023 12:10:07 +0000 Original-Received: from localhost ([127.0.0.1]:42016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNuO7-0000Wh-70 for submit@debbugs.gnu.org; Mon, 24 Jul 2023 08:10:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNuO1-0000W4-C3 for 64819@debbugs.gnu.org; Mon, 24 Jul 2023 08:10:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNuNr-0003jk-CE; Mon, 24 Jul 2023 08:09:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=zSvY60e70kloIXG4QRrtNzsTHCCwXLdLAejP1S2FlEY=; b=nRld0+BDtgK+ ujhcxNvPM/pYM8G/DynwwrTWqnNh0jH92lDl4P5vrACOsVF/M/yjTMAZRsEpzHHbh4XTgAUJ3Hl2v jJLi7FMPsZOBsChY9NERTTnOc3xWKqLfyhpxEpm5eVBUmi9WsFxuQr2MohefhkeVdL0Yx+RjpuG54 azKMkxoYB98zulil6+VgXgGJDAKERDZpWeBeTwYRbXn+YKCJh0bMGaoJXkPv/emgbbFYQCwOJmAp6 Os7vanF0y1FENeEM/J4pO6IDb0u7G8tJkPAOLBjY8aeRKuv1S0KinemdYWqmBFZh9Vqh2vTjjlrEh Zh7E91CygQpY+7tiKIG8Fg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNuNh-0004GT-AH; Mon, 24 Jul 2023 08:09:43 -0400 In-Reply-To: (message from Helmut Eller on Mon, 24 Jul 2023 08:32:04 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265957 Archived-At: > From: Helmut Eller > Date: Mon, 24 Jul 2023 08:32:04 +0200 > > When Emacs is blocked in condition-wait, then C-g doesn't seem to work. > E.g. Emacs hangs and pressing C-g has no apparent effect when executing > the attached file with: > > emacs -Q -l deadlock.el -f deadlock > > Mabye sys_cond_wait could call pthread_cond_timedwait with a fairly long > timeout, say one second, and repeatedly check if C-g was pressed. How will we know what to do with C-g if some thread runs Lisp, while one or more other threads are stuck in condition-wait? wouldn't you expect in this case to have C-g go to the running thread?