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#56967: 29.0.50; Frequent crashes under Wayland Date: Fri, 05 Aug 2022 09:43:44 +0300 Message-ID: <83mtcj197j.fsf@gnu.org> References: <1932596.zmb9SnqgO4@odin> <834jys4dwq.fsf@gnu.org> <87les46xem.fsf@yahoo.com> <16164156.Y83TkukXya@odin> <878ro37bts.fsf@yahoo.com> <83pmhf1a2p.fsf@gnu.org> <87les39pbu.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39893"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56967@debbugs.gnu.org, bjorn.bidar@thaodan.de To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 05 08:44:12 2022 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 1oJr47-000AIC-VC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Aug 2022 08:44:12 +0200 Original-Received: from localhost ([::1]:37906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJr46-0006ct-MX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Aug 2022 02:44:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJr3y-0006ci-Lr for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 02:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJr3y-0006pH-CO for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 02:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJr3y-0007Eg-3Q for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 02:44: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: Fri, 05 Aug 2022 06:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56967 X-GNU-PR-Package: emacs Original-Received: via spool by 56967-submit@debbugs.gnu.org id=B56967.165968183927799 (code B ref 56967); Fri, 05 Aug 2022 06:44:02 +0000 Original-Received: (at 56967) by debbugs.gnu.org; 5 Aug 2022 06:43:59 +0000 Original-Received: from localhost ([127.0.0.1]:55863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJr3u-0007EI-U4 for submit@debbugs.gnu.org; Fri, 05 Aug 2022 02:43:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJr3p-0007E2-P8 for 56967@debbugs.gnu.org; Fri, 05 Aug 2022 02:43:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJr3j-0006n9-Va; Fri, 05 Aug 2022 02:43:47 -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=dl+4ev8NRy+IDs5EDWpG/eW1HXPybr0eGQ/Wt4r4pN4=; b=HXGp+euAIXRm XEPnD1NG81oiB7RiFQ9H58HAhFU+i0BTNXTK3+OX61PYgZDfxlPBkgRozNBvbVO36ZZofAjbFOjPP UnOeCef+F5BTkvveY2lXBunOGCVKnRcYqdMmT+CfVla+kk7gVbMYfv1hqyMXTVfuCYk4flBFzj7pF phctvnjJsqXvVVPB5gXKhwt4jmCj4v8niXTECzDrQP4mYp/YY7TjFoCG2GZbieJw5r2Got8jYnajc VPx2tQP1yddv1P22jLXA5cnoomPuzhRNqeBWVI88fWO6J/uxm+SEqz+NLGSExe5yBrHy7AqPFhX8f FmxlXVnZAFVYWWLSk4eGwA==; Original-Received: from [87.69.77.57] (port=2144 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 1oJr3j-0005B6-6Q; Fri, 05 Aug 2022 02:43:47 -0400 In-Reply-To: <87les39pbu.fsf@yahoo.com> (message from Po Lu on Fri, 05 Aug 2022 14:28:21 +0800) 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" Xref: news.gmane.io gmane.emacs.bugs:238824 Archived-At: > From: Po Lu > Cc: bjorn.bidar@thaodan.de, 56967@debbugs.gnu.org > Date: Fri, 05 Aug 2022 14:28:21 +0800 > > Eli Zaretskii writes: > > > Does _exit in glibc provide any hooks that we could use? > > Not that I know of. How about asking the glibc developers to provide one, citing this very use case as the real-life problem to solve? Specifically, what I'd like to do in that hook is to shut down Emacs in an orderly manner, so that the user won't lose all his/her edits. > > Or maybe GTK has some knob to let it call us before it calls _exit? > > Nope, GTK simply does this: > > if (wl_display_flush (display->wl_display) < 0) > { > g_message ("Error flushing display: %s", g_strerror (errno)); > _exit (1); > } > > if (for example) wl_display_flush, a low-level Wayland interface, fails > from an IO error. Amazing. Where did those people learn to develop friendly, extensible libraries? in what tyrannical culture?