From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: igc, macOS avoiding signals Date: Tue, 31 Dec 2024 16:07:08 +0100 Message-ID: References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <87msgdkt29.fsf@gmail.com> <86h66lnjrt.fsf@gnu.org> <868qrxnfrw.fsf@gnu.org> <87a5ccl2zx.fsf@gmail.com> <875xn0p3l1.fsf@protonmail.com> <86ldvwm190.fsf@gnu.org> <87cyh8nczh.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1118"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , eller.helmut@gmail.com, spd@toadstyle.org, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 31 16:07:30 2024 Return-path: Envelope-to: ged-emacs-devel@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 1tSdqC-00008e-SN for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Dec 2024 16:07:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSdpy-00045v-L5; Tue, 31 Dec 2024 10:07:14 -0500 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 1tSdpx-00045Z-CW for emacs-devel@gnu.org; Tue, 31 Dec 2024 10:07:13 -0500 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tSdpv-0002Kx-UP; Tue, 31 Dec 2024 10:07:13 -0500 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-aa679ad4265so1998504166b.0; Tue, 31 Dec 2024 07:07:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735657630; x=1736262430; darn=gnu.org; h=content-transfer-encoding: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=dmoDWnZCh5YyKZ5DJSgXmrw5UYB0Yr05cYsuuof3Wtk=; b=Fi+KkLjyIIjMqwBte0dLs1QSrOkasX3wqblaUbwA8h+ypcvXpAExNPoCEhRDiibRaC BoWFI/T/1HAyMO3GNgcz3jUsivS/fO+mU6XRM7MN86Xq5SbMVTfKGNqI2Gzjr/ylo9Wv e5nWaSNWhn71kUy+u163hHJJ+xn3ZhNnIwEUTw1Mo5dGyOSnO06NvvY+L49+tQkV9eH4 TUsNomfWSyAHecd1EAi9tc9lbGsQKc+O6C7RmWqyWuc2nB93j6P2MHGaTP1qap7Nloap 0q14Nm7qWwpiO+aNXZCTv9pjn/9EgobZXW6ecBhygjORyOdodWtk2lthY3snrzBfnWcm 04XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735657630; x=1736262430; h=content-transfer-encoding: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=dmoDWnZCh5YyKZ5DJSgXmrw5UYB0Yr05cYsuuof3Wtk=; b=ljD6hez/KLRvrXXvzKw85GB1+MtFa+R+Dso3Dbqke5qYZMJneEqJwJY6Kyh4XGzW08 48S1DVg+8PYGU2iHNjKWkyWaHAmSwHJ3vQCb9pGs1ZiLW+RvPnvZ/jNRHfnXKhRUjLzO m7QeCO/DLMAZhxw1R4152k4MYVBzcRCdWAKIaqUN4lOFzFrOoNOGYmLccr3e597+nmQZ /BGeXGc72SGEBUmLyVcEn/3kFKOLOIJa1SOVja68eiDU4R+dhPKz7/fpkM+oUXEqtDxj 28zI7yL5UVAlb+t1hTbM0Ljswvw5rMur4+63LWxH0ePGtWHZtIklvObsjvwer6/cHXOc RbeA== X-Forwarded-Encrypted: i=1; AJvYcCVmBRci1heUNTgx9DynHfM2OV7W55MWXsO++03p3GCJMOK1hAtIvpkZATi+SCaIaZbYEqoo2DmVL/QIwg==@gnu.org X-Gm-Message-State: AOJu0YzOZmAVqvdGgnQIZg7dOJJ7jO5qEtjuCJnGTG8n+RkJWmvt2J0w u4Pf/PDSIJlrimNrvUYAjiY/exyMXgFRQV5f/WTGRUbpXvcl1P+7l1zleQ== X-Gm-Gg: ASbGncuFmeBPvRy3wfkQF5qzGaO/a7FCEZWdK4Ux+cn6ksBpsZGXV4aoQu6ynh5eBMi hUyPgijKWtOBRaKmgG65AnOepyQCWj3vnTi/0mXCqD5HCE8/0/RZUt/6S2PnFfRvy6+1Fgi+6yU Xk7yag7qzNYc/KcHIJoAhA4mRXG5jEmQyk67dOOep/UP6E3ngm2ELJl+oDlGai23jcJxQ927wsW +dosG/0wxukiso6pB+wr4pgIcidhqxrdfb5Ldb2mfxaENVAykTtiocO1oVgyaa/iwmPceoTSS9H d1oA7WwAMCJY8J7gXZl4CcmUVnJfXZVnst4T/QtkcyvdpnH081RVNrD8LxmiG5ph7g== X-Google-Smtp-Source: AGHT+IF6OBf8KnXotuUlulIKBCQrt3JKzPM+AIYF3W2lQ4WGwOYitecSIXMc62YKfvTFkbFPRsVjOg== X-Received: by 2002:a17:907:7f20:b0:aaf:1f6:7423 with SMTP id a640c23a62f3a-aaf01f674b7mr2301624966b.18.1735657629399; Tue, 31 Dec 2024 07:07:09 -0800 (PST) Original-Received: from pro2 (p200300e0b7216c0021e5e367c6afc189.dip0.t-ipconnect.de. [2003:e0:b721:6c00:21e5:e367:c6af:c189]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0f0159e5sm1581340366b.153.2024.12.31.07.07.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2024 07:07:09 -0800 (PST) In-Reply-To: <87cyh8nczh.fsf@protonmail.com> (Pip Cet's message of "Tue, 31 Dec 2024 14:29:18 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327522 Archived-At: Pip Cet writes: > "Eli Zaretskii" writes: > >>> Date: Tue, 31 Dec 2024 10:09:25 +0000 >>> From: Pip Cet >>> Cc: Gerd M=C3=B6llmann , Eli Zaretskii >>> , spd@toadstyle.org, emacs-devel@gnu.org >>> >>> "Helmut Eller" writes: >>> >>> > I wonder if the backtrace that we see in the signal handler is any >>> > different from the backrace that we would see at the next safe point >>> > (i.e. the next time maybe_quit is called). >>> >>> If we keep a shadow signal mask, the only requirement for a safe point >>> is that we made some progress OR the lock was released. But the >>> backtrace will change if we wait for the next maybe_quit, IIUC. >>> >>> maybe_quit is not a great safe point, it's just the best we have. It's >>> insufficient if Emacs becomes idle, and how often we call rarely_quit >>> is quite unpredictable. >> >> What about doing that from process_pending_signals? > > Yes.=20=20 I'm all for it.