From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: long-standing GTK bug Date: Mon, 10 May 2021 11:00:08 -0400 Message-ID: References: <83zhbcg6s4.fsf@gnu.org> <87blnr6uck.fsf@tullinup.koldfront.dk> <87wo5kumkn.fsf_-_@tullinup.koldfront.dk> <86ftc5hc8j.fsf@gmail.com> <87d079io10.fsf@tullinup.koldfront.dk> <87ftbyokll.fsf@tullinup.koldfront.dk> <83a71c71id.fsf@gnu.org> <83sgf356sy.fsf@gnu.org> <87o8dl8mv1.fsf@tullinup.koldfront.dk> <87fsyw42yg.fsf@gmail.com> <87r1igx7pd.fsf@tullinup.koldfront.dk> <87bl9j3q53.fsf@gmail.com> <878s4mq566.fsf@tullinup.koldfront.dk> <877dk64usa.fsf@gmail.com> <87zgx2ohtq.fsf@tullinup.koldfront.dk> <87k0o6k76w.fsf@telefonica.net> <8735uu4phq.fsf@gmail.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="7891"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: =?windows-1252?Q?=D3scar?= Fuentes , emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 10 17:02:13 2021 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 1lg7QC-0001nF-Ke for ged-emacs-devel@m.gmane-mx.org; Mon, 10 May 2021 17:02:12 +0200 Original-Received: from localhost ([::1]:41516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lg7QB-0002E3-Iv for ged-emacs-devel@m.gmane-mx.org; Mon, 10 May 2021 11:02:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lg7OM-00016u-VA for emacs-devel@gnu.org; Mon, 10 May 2021 11:00:19 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:49640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lg7OK-0004qg-Pv for emacs-devel@gnu.org; Mon, 10 May 2021 11:00:18 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D4AAC8009E; Mon, 10 May 2021 11:00:14 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B785A803FA; Mon, 10 May 2021 11:00:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1620658809; bh=hy+J2pb3/E4s2xpy3mSETM5+Pb2y57eHuw9mdWce/M0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=W9v7gkAqvbGP3IcX0CwzzH7wm9XcpSYodgmjrxQW8UODEMN9iOei/z5BFygzBz7qb dgQapxXn5cmeFhLM8zSSsOs+Dt5kbZeS5OA1t+i+39GaGqiPPYyFuEFdIZx30VBKWe 9cYiJBeyba7zOu68WoI9QTehZ9J3qGxBd5oVUGcTN8SKax/6k9iaoexHYge/grBTaV ZUmHNO+BVuXJHOqmDo3MpwyCZafLjsU+4975e7glHKb6Lz0W+jRzzAWpGkqftiCaPj Vr1WlvD2urSejgtsOezrfIpyZ9hKiK4dlGWC6yat50zabdxHdTRQ+1IB7aM4VXxT0X XiesVgG4uqt5Q== Original-Received: from alfajor (76-10-140-76.dsl.teksavvy.com [76.10.140.76]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8201F1201C1; Mon, 10 May 2021 11:00:09 -0400 (EDT) In-Reply-To: <8735uu4phq.fsf@gmail.com> (Robert Pluim's message of "Mon, 10 May 2021 16:45:05 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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.23 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" Xref: news.gmane.io gmane.emacs.devel:269121 Archived-At: Robert Pluim [2021-05-10 16:45:05] wrote: >>>>>> On Mon, 10 May 2021 10:40:20 -0400, Stefan Monnier said: > Stefan> IIUC the difference (with the patch) is between stopping ssh = via `C-c` or > Stefan> via `kill`. I wonder why this matters, and I think it's not = at all > Stefan> obvious if an "abrupt" network disconnection would be more li= ke `C-c` or > Stefan> more like `kill`. > In the 'C-c' case Emacs has had a chance to clean up its internal > state (with the patch applied). Why? What does ssh do that is gentler? > With 'kill' we=CA=BCre pulling the rug out from under GTK (see the > backtrace several messages up-thread). I suspect it then also depends on the `kill` signal. In my WM (ctwm), I can also distinguish between `f.delete` and `f.destroy` where the first sends something like a WM_DELETE request to the application (which Emacs treats via `handle-delete-frame`, IIRC) whereas `f.destroy` asks the X server to cut the connection AFAIK. Would `f.destroy` be more like the `C-c` or the `kill` case of ssh? Stefan