From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.bugs Subject: bug#64819: 30.0.50; condition-wait not interruptible Date: Mon, 24 Jul 2023 14:58:37 +0200 Message-ID: References: <83pm4hse6n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10692"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64819@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 24 14:59:29 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 1qNv9t-0002fd-KI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jul 2023 14:59:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNv9V-0001IE-B2; Mon, 24 Jul 2023 08:59:05 -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 1qNv9T-0001Hd-Io for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 08:59:03 -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 1qNv9T-0000Hk-26 for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 08:59:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNv9S-0006xX-N1 for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 08:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jul 2023 12:59: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.169020352726711 (code B ref 64819); Mon, 24 Jul 2023 12:59:02 +0000 Original-Received: (at 64819) by debbugs.gnu.org; 24 Jul 2023 12:58:47 +0000 Original-Received: from localhost ([127.0.0.1]:42101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNv9D-0006wl-Jm for submit@debbugs.gnu.org; Mon, 24 Jul 2023 08:58:47 -0400 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:45172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNv9B-0006wW-7n for 64819@debbugs.gnu.org; Mon, 24 Jul 2023 08:58:45 -0400 Original-Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3141fa31c2bso3117034f8f.2 for <64819@debbugs.gnu.org>; Mon, 24 Jul 2023 05:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690203519; x=1690808319; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=qsruRT2HB3bJXgF75zGSRmdzFoWqET3Mcla0ouJAPVE=; b=kPVTYBTR6+FT4OAeg6jU6CqnngWc7b6SbIXBDouNinCpOrhp44sRHoIKSA+lsWSbKg tAUQOTlMBmPcaxRPaiIK5epvrvt0rPXomg/yqS1Ak+lW+/ZdB1w5hX1PvM2xzn74x3Jo Yjn59XZgEPAlyZZFPSsYG4QuNxSD8wytkf2XMQUHBqoICGx8+1xD+uzbB3YmzUF4bypr Q1lJP4O9oIRjWs+QImmk8UAMImcBUWzt4SJ0lRL27RSH4J9q9vxG+OY/8Cq8EKEzBzhO rssOzQyhkMF2H627RhpohrPsz/tcODHBCz58216BCDWi2792tjuUgJJJZW4z54In+6kO Oi7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690203519; x=1690808319; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qsruRT2HB3bJXgF75zGSRmdzFoWqET3Mcla0ouJAPVE=; b=dNQsyLb0/vVjve+rXJJP8/ml8GUU3gh1t72OSQcDVvd2NGoFQGC2MWWItiGR2z7Sw+ XxYZ1e3LLnzNrs1SG4dCnartSW8W35QGjdbde/cxLjVlzXc2zZuU5cTVSopJiSRFtG9y jvMfDt6XFL3yfBLnLQY92Ht6560LQRI2lJBDma6r8zXirAehKOvFYjAPQAUCDXxnFXNV koeViwW+QY986oVV2wNUYdRbcwiSF7SvDAXeNbmK8JONY9wnMCgKK90B7X6itdlfnKIL OkGbAmgl5uGTAj7Eev3nCZ1U4CF7DoMyEhQaLg9rL/0IhHvk8zEBYTitrOoUg+sEz4Qj bt1Q== X-Gm-Message-State: ABy/qLZYD1Gynwpd0kE83hKJdoC/EwO32Ml8zH0fZzrCWbLe1Cc/bq8f VHBNnfHNenBjyh581Q39CTfQ0lpi8b0= X-Google-Smtp-Source: APBJJlHT4jDXeiziuVO9P3o1lX6eKBsZ/47nWB9PWM8/DMvb5hKN/CmTriHO6JSCjcuqtF+rxlbtJw== X-Received: by 2002:a5d:45c1:0:b0:314:49d2:aaab with SMTP id b1-20020a5d45c1000000b0031449d2aaabmr7265509wrs.8.1690203518791; Mon, 24 Jul 2023 05:58:38 -0700 (PDT) Original-Received: from caladan ([212.46.176.29]) by smtp.gmail.com with ESMTPSA id s14-20020adfea8e000000b003143be36d99sm12905999wrm.58.2023.07.24.05.58.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 05:58:38 -0700 (PDT) In-Reply-To: <83pm4hse6n.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 24 Jul 2023 15:10:24 +0300") 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:265963 Archived-At: On Mon, Jul 24 2023, Eli Zaretskii wrote: > 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? We could say that C-g sets quit-flag and causes all blocking calls to condition-wait to return nil (spurious wakeup). At that point all threads are conceptually running. Then the first thread (unspecified which one) who calls maybe_quit() finishes handling C-g and clears quit-flag afterwards. Those threads who don't feel prepared to handle C-g can bind inhibit-quit. Helmut